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

Query on RTC Webserver

Hello team

UseCase :

We have Developed a Widget in RTC using  javascript. It uses some jquery url where it fetches information from RTC Server .

I am Hosting this widget in our  webserver (http://rb-airbag.de.bosch.com/)

Issue:

Whenever I try to run this widget I get the following Error :

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://rb-alm-04-q.de.bosch.com/ccm/service/com.ibm.team.rtc.common.internal.service.web.sprite.ISpriteImageService/js/processattachment?pa=_01T-QMPkEeSSPtPHKO0xfg. (Reason: CORS header 'Access-Control-Allow-Origin' missing).

 My observations:

   I think the primary issue here is that, I am  using the widget  to get some data or resources from another website/server:

 Example : my  current widget is on WEB1(http://rb-airbag.de.bosch.com/) but the  resources or data  are on WEB2 ( https://rb-alm-04-q.de.bosch.com/ccm/) .

Any help would be Appreciated ….

 Thanks in Advance

0 votes



2 answers

Permanent link
If you search "CORS" on the net, you will get lots of results. Also, you need to explain the situation in details (including browsers and application servers in use) for others to help you as the configuration is specific to each application (if doable). Here is one example:
https://jazz.net/forum/questions/151485/does-rtc-support-cors-cross-origin-resource-needed-for-a-javascript-oslc-consumer

0 votes


Permanent link
You can use gadgets.io.makeRequest to bypass the CORS limitation.

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,941

Question asked: Nov 07 '16, 3:56 a.m.

Question was seen: 2,088 times

Last updated: Nov 16 '16, 12:41 p.m.

Confirmation Cancel Confirm