This is more a question than an issue.
I'm using setFetchOptions to add a header to my request, specifically a authorization header, like so:
setFetchOptions({ headers: {"Authorization" : "bearer 1234567890"} });
When making a request, such as
const endpoint = await new WmsEndpoint(baseUrl).isReady();
The header doesn't appear to be sent with the web request. In my instance, this means the GetCapabilities request does not include the required Authorization header and I don't get the details I need.
If I switch off the web worker by calling enableFallbackWithoutWorker(), then it works and the Authorization header is appended.
Is this is a known limitation to how the web worker works or is it a bug? I'll admit to not being entirely familiar with web workers and what restrictions they may have.
This is more a question than an issue.
I'm using
setFetchOptionsto add a header to my request, specifically a authorization header, like so:When making a request, such as
The header doesn't appear to be sent with the web request. In my instance, this means the GetCapabilities request does not include the required Authorization header and I don't get the details I need.
If I switch off the web worker by calling
enableFallbackWithoutWorker(), then it works and the Authorization header is appended.Is this is a known limitation to how the web worker works or is it a bug? I'll admit to not being entirely familiar with web workers and what restrictions they may have.