pwa
pwa copied to clipboard
Access-Control error in service worker
After using my app for a while my HTTP requests start failing (with an XHR Error), if I inspect the service worker I can see this error in the console:
Request header field x-ijt is not allowed by Access-Control-Allow-Headers in preflight response.
If I delete the service worker my HTTP requests start going through correctly.
Just had the issue again, not sure if these help but see attached screenshots below. This is when when running on Dartium -I'm not sure if the issue also exists on Chrome.
@jimmyff: is there a simple to use http endpoint I could use for reproducing the issue?
It seems like IDE support plugin adds "x-ijt" header to all requests which makes them fail if server responds with "Access-Control-Allow-Headers".
Just allow x-ijt at server-side.