Recent searches
No recent searches
App working fine locally but not in instance(private app)
Posted Jan 07, 2022
Hi team,
After developing the app, we tested locally using "zat=true" all the features of the App were working fine but when the same app installed as private app, the azure api which used for authorization throwing error as "Access to XMLHttpRequest at 'https://dev.azure.com/xxxx/_apis/projects?api-version=6.0' from origin 'https://xxx-xxxxx.zendesk.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. "
Thanks,
Suman
0
3
3 comments
Eric Nelson
Would you be able to show us the code snippet for the corresponding request?
Thanks!
0
Suman Chinnaraju
Hi Eric Nelson,
Thanks for the reply, I've attached screenshot of the code snippet of corresponding request below.
0
Eric Nelson
Thanks for providing this, are you using secure settings in your application? If so the cors flag would be getting removed from the request as it's not possible to use secure settings with a client side request (we talk about it here). Instead it needs to be thread through our proxy so we can secure and sanitize the request.
Hope this helps,
0