It's all about the answers!

Ask a question

Query on RTC Webserver


vinitha dsouza (147123136) | asked Nov 07 '16, 3:56 a.m.

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

2 answers



permanent link
Donald Nong (14.5k614) | answered Nov 15 '16, 7:39 p.m.
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

permanent link
Stefan Oblinger (185213) | answered Nov 16 '16, 12:41 p.m.
You can use gadgets.io.makeRequest to bypass the CORS limitation.

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.