Forum Discussion
YuriK
Khoros Expert
Hey Ratnesh,
In some of our stage sites we have a configuration enabled that will cause you to be able to make a POST call via GET. In production, however, we never enable this configuration, so your code probably won't work in production.
There are a few possible solutions though.
1) Use an endpoint to make the rest call and you can call the endpoint via GET
2) Work with support to configure the domain you are calling from as a valid origin
Hope this helps,
Yuri
In some of our stage sites we have a configuration enabled that will cause you to be able to make a POST call via GET. In production, however, we never enable this configuration, so your code probably won't work in production.
There are a few possible solutions though.
1) Use an endpoint to make the rest call and you can call the endpoint via GET
2) Work with support to configure the domain you are calling from as a valid origin
Hope this helps,
Yuri
ratnesh
12 years agoLithium 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
Related Content
- 2 years ago
- 2 years ago
- 5 years ago
- 4 years ago