Forum Discussion
ratnesh
Lithium Alumni (Retired)
Hi Yuri,
Thanks for the quick response. I have further queries on your reply.
1) Use an endpoint to make the rest call and you can call the endpoint via GET
==> Do you mean to say call GET from the widget running on other domain? If yes, this would be a cross domain limitation (same origin policy of browser)
2) Work with support to configure the domain you are calling from as a valid origin
==> Would this be using CORS configuration ? Would lithium does this kind of configuration of marking a certain origin to alllow cross domain access ? Any such cases if you know would be grealty appreciated....
Thanks,
Ratnesh
YuriK
12 years agoKhoros Expert
Hey Ratnesh,
For 1, You said previously that you should be able to solve the cross domain issue if you were able to do a GET (via jsonp). By creating an endpoint, you can make the post request from the endpoint and call the endpoint via GET from your widget.
For 2, we do have a configuration that Lithium Support can set that can allow cross domain access from specific domains. You will need to open a support request to get this set up.
Hope this helps,
Yuri
For 1, You said previously that you should be able to solve the cross domain issue if you were able to do a GET (via jsonp). By creating an endpoint, you can make the post request from the endpoint and call the endpoint via GET from your widget.
For 2, we do have a configuration that Lithium Support can set that can allow cross domain access from specific domains. You will need to open a support request to get this set up.
Hope this helps,
Yuri
Related Content
- 2 years ago
- 2 years ago
- 5 years ago
- 4 years ago