jo5ef / Force-CORS

A Firefox Extension to add CORS headers to responses.
http://www-jo.se/f.pfleger/forcecors
28 stars 24 forks source link

Not working in Firefox 29.0.1 #7

Open eeerlend opened 10 years ago

eeerlend commented 10 years ago

Hi! I've used this plugin over long time, until an update of Firefox recently (29.0.0/1).

Firebug now complains (Even if CORS is turned on):

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at {http://path.to/my.json}. This can be fixed by moving the resource to the same domain or enabling CORS.
fredrikeldh commented 10 years ago

Same here, running 29.0.1.

eeerlend commented 10 years ago

Note - I did reinstall Force-CORS, and that did the trick for me;)

fredrikeldh commented 10 years ago

I tried reinstall, no effect. By the way, the addons.mozilla.org page is now gone (404'd). https://addons.mozilla.org/en-US/firefox/addon/forcecors/

jo5ef commented 10 years ago

Here's the story in a nutshell: With the latest version of Firefox, ForceCORS stopped working (incompatible SDK & invisible toolbar). lissyx forked it and rewrote it to work with the new SDK but when I tried to update the addon on mozilla.org it was rejected due to security concerns. I'll start to look into it when I get the time but in the meantime I've had different people say that they got it working again after re-installing and or this https://support.mozilla.org/en-US/kb/what-happened-to-the-add-on-bar.

warren-bank commented 10 years ago

I just wanted to quickly say "thank you!" for this plugin. It's so brilliantly simple; I'm a little embarrassed that I didn't think to do this too. Until recently, I'd been using Chrome with command-line switches to disable CORS.. but I found myself in a situation where I also needed to use (the now deprecated) "PrivilegeManager" in Firefox in combination with a way to workaround CORS issues, and finding this was such a wonderful surprise. This addition to my toolbox will actually change my workflow on certain types of projects (ie: in-browser data parsers/converters). Truly truly "thank you!".

PS: if anybody else also wants to pair this plugin with a version of Firefox that allows reading/writing from/to the local filesystem (via PrivilegeManager), I found that version 17.0.0 of Firefox from PortableApps is an excellent go-together. Just need to add the config option: "security.enablePrivilege.enable_for_tests" = true.

jo5ef commented 10 years ago

I've documented the workaround here.