Disable Firefox Same Origin Policy without installing a plugin
Solution 1
There is a boolean in Mozilla Firefox that should allow toggling of the same origin policy called security.fileuri.strict_origin_policy
.
Go to about:config
in your browser and accept the risk:
Then search for security.fileuri.strict_origin_policy
and double click it to toggle it to false
like so:
I have not tested this but in my experience, this is the flag controlling the same origin policy.
Solution 2
Rather than directly answer your question, this alternative might be viable if you also have ownership of the server
Get your server to add the following response header. (+ Apply a DevOps process or piece of code to ensure only apply this code during development)
Access-Control-Allow-Origin
.. With the value of your origin domain, e.g.
http://example.com
or alternatively *
for all domains.
Admin
Updated on March 10, 2020Comments
-
Admin about 4 years
Is there a way to disable the same origin policy on the Mozilla Firefox browser by toggling a flag in the browser?
This is strictly for development, for not production use.
Please note:
A similar question asked 3+ years ago yielded an accepted answer that recommends users to install a plugin. I consider this less secure and more cumbersome than toggling a flag (e.g. in the about:config, or passing a parameter when starting the browser like in Chrome).