>>>How to enable Cors Access-Control-Allow-Origin on Azure App Serivce
How to enable Cors Access-Control-Allow-Origin on Azure App Serivce 2018-02-23T18:09:38+00:00

Home Forums Azure Azure App Service How to enable Cors Access-Control-Allow-Origin on Azure App Serivce

  • Author
    Posts
  • Muhammad Zaheer
    Keymaster
    Post count: 18

    Access to Resource at ‘https://somesite.com’ from origin ‘https://domain.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://domain.com’ is therefore not allowed access.

    While working on Azure Service App I got an issue related to ‘Access-Control-Allow-Origin’ , luckily there is CORS  related functionality available to us in App Service under API | CORS

    You can put the domain from which you are getting resource, i.e. ‘https://somesite.com’ , note that you do not put / at the end of the website name.

    Solved: Access to Resource at 'https://somesite.com' from origin 'https://domain.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://domain.com' is therefore not allowed access.

You must be logged in to reply to this topic.