Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Application Proxy CORs

Hi I am calling an Azure Application Proxy endpoint (myapp.msappproxy.net) through the browser and am running into a CORs issue. How/where can I configure CORs for the Azure Application Proxy endpoint? I've looked in both the old and new Azure portals.

The error I'm getting is on the OPTIONS preflight request.

XMLHttpRequest cannot load https://myapp.msappproxy.net. Response for preflight is invalid (redirect)

I realize that you set the access-control headers on the API endpoint, in this case the App Proxy, but I can not find where to do so. Additionally, I must set a custom header in my request, because am using bearer token authentication.

Thanks!

like image 554
user959729 Avatar asked Sep 15 '25 18:09

user959729


1 Answers

Just had the same issue. I have an Azure Application Proxy. So an internal page is available for externals. But normally the Application Body is set to No. With that setting browsers having huge CORS errors. To fix these CORS problems you have to set the Application Body to Yes. Now the body is correctly set and all browsers are able to show the website without CORS issues.

application proxy settings

Also good hints you can find in the Enable link translation section.

like image 197
kwoxer Avatar answered Sep 17 '25 08:09

kwoxer