Use the loadUrl method to set the headers. loadUrl receives two parameters. url indicates the URL to be loaded, and headers indicates the additional HTTP request header of the array type.
// With parameter headers
this.controller.loadUrl('www.example.com', [{ headerKey: "headerKey", headerValue: "headerValue" }]); Reference