Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Cross-domain requests in Firefox

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,

0 votes



One answer

Permanent link

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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Oct 19 '15, 5:42 a.m.

Question was seen: 3,126 times

Last updated: Oct 19 '15, 11:36 a.m.

Confirmation Cancel Confirm