4

how can I enable CORS on the Azure application gateway ? I have a signalhub running on Azure kubernetes service as a Dapr app. The app has All .net cors policies setup correctly, issue seems to be from the JavaScript to the gateway.

2 Answers 2

6

enter image description here

Setting a rewrite rule on the application Gateway like below resolves the issue.

6

You can enable Access-Control-Allow-Origin Responde Header in Rewrites, on your Application Gateway

Enable Access-Control-Allow-Origin Responde Header

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.