It's all about the answers!

Ask a question

Cross-domain requests in Firefox


Leire Torres (36721) | asked Oct 19 '15, 5:42 a.m.
I am developing an OpenSocial gadget (JavaScript language) for RQM (Rational Quality Manager) that gets information from DWA (Doors Web Access). The gadget is running on RQM (https://:<host>:9443/) and I want to make request to the DWA (https://<host>:8443/).
Due to the same-origin policy in Firefox, I get the following error:
> Cross-Origin Request Blocked: The Same Origin Policy disallows reading
> the remote resource at https://<host>:8443/xxxx. (Reason: CORS header
> 'Access-Control-Allow-Origin' missing). <unknown> Cross-Origin Request
> Blocked: The Same Origin Policy disallows reading the remote resource
> at https://<host>:8443/xxxx. (Reason: CORS request failed). <unknown>
As I am using Tomcat I followed the steps described in https://jazz.net/forum/questions/151485/does-rtc-support-cors-cross-origin-resource-needed-for-a-javascript-oslc-consumer to configure CORS but still the same error appears. 
I checked the request/response headers in both Firefox (using RestClient) and Chrome (using Advanced Rest Client Application) but I canĀ“t see "Access-Control-Allow-Origin" response header.  In the case of Chrome, I found an extension named 'Allow-Control-Allow-Origin' and if I enable it, I see Access-Control-Allow-Origin header.
I need to run the gadget in Firefox so, is there an equivalent extension for Firefox? Or how can I avoid using these extensions?
Thanks in advance,

One answer



permanent link
Ted Mayer (47649) | answered Oct 19 '15, 11:36 a.m.

Hello Leire,

As you may know, the issue that you are running into appears to be browser or webserver related. Since you have already attempted the steps on the webserver side, the setting may need to be done on the browser side. I was able to find a technote that has some additional information that could help:

http://www-01.ibm.com/support/docview.wss?uid=swg21698830

The technote also contains a link to http://enable-cors.org/index.html

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.