4

How can I disable The Same Origin Policy in Firefox Developer Edition. For Some reason I thought it should be easy to do this in Developer Edition but I can't find the settings.

Mohsen
  • 58,878
  • 30
  • 149
  • 175
  • I do not think this is the right site to ask this because it has nothing to do with programming. Move it into the appropriate site if you want to save yourself from severe downvote :) –  Nov 24 '14 at 23:19
  • 4
    @Begueradj How this has nothing to do with programming? I need to disable this policy to test my *code*. Also [this](http://stackoverflow.com/questions/17088609/disable-firefox-same-origin-policy) and [this](http://stackoverflow.com/questions/3102819/disable-same-origin-policy-in-chrome) are in this website. – Mohsen Nov 24 '14 at 23:23

1 Answers1

-4

Honestly you shouldn't be able to do that in any browser - the service should send Access-Control-Allow-Origin: * or similar if it can be used cross-domain. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#The_HTTP_response_headers

Maybe if you need to test the service before those headers are implemented you could set it to use a local proxy that adds the headers.

NoBugs
  • 8,418
  • 10
  • 72
  • 132
  • 1
    This is a non-answer. It is possible to do this in other browsers and there are good use cases for it. – Mohsen Nov 25 '14 at 06:30
  • Really? In what browser? I hadn't heard of that being allowed except for when using CORS headers. – NoBugs Nov 25 '14 at 06:43
  • 2
    [here](http://stackoverflow.com/questions/17088609/disable-firefox-same-origin-policy) and [here](http://stackoverflow.com/questions/3102819/disable-same-origin-policy-in-chrome) – Mohsen Nov 25 '14 at 07:51
  • @Mohsen Interesting! I didn't know that – NoBugs Nov 25 '14 at 07:54