Add header with token to url using Ionic inApp browser

I’m using the Ionic inApp browser to open a URL. This is my code:

const target = '_self';
const browser = this.iab.create('https://example/dev/ViewForPdf');
browser.on('loadstop').subscribe(event => {
      browser.insertCSS({ code: 'body{color: red;' });

I have an authorization token that I need to pass in the header of the request, is there a way to do this?

Because right now if I open the specified URL it redirects me to the login page of the app because I’m sending the request without the token.

I also want to specify that in my project I already have an httpInterceptor which attaches the token to every http request, but for some reason when opening the URL with Ionic inApp browser it doesn’t work.
It works fine if I use the capacitor inApp browser. For example, using this line of code I can open the URL without any problem

await{ url: 'https://example/dev/ViewForPdf' });

but unfortunately for a specific reason, I have to use the Ionic inApp browser.