How to disable CORS today with Firefox Quantum?

1.4k Views Asked by At

I tried setting this flag to false, but it doesn't work...

security.fileuri.strict_origin_policy

I'm using Firefox Quantum 61.0.1

Any clue?

Regards

1

There are 1 best solutions below

0
On

It doesn't work, because the fileuri configuration section is specifically for File URIs, and you are using an HTTP URI.

You need to either:

  • Load the HTML page your script is running in from the same origin
  • Figure out why your attempt to enable CORS failed
  • Install a browser extension to fake CORS support (these tend to be unreliable (especially when a preflight request is needed) and risks you opening yourself up to security issues on the WWW).