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

///How to enable Cors Access-Control-Allow-Origin on Azure App Serivce
How to enable Cors Access-Control-Allow-Origin on Azure App Serivce2018-10-11T11:24:17+00:00

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

Viewing 1 post (of 1 total)
  • Author
    Posts
  • ScientistZ
    Keymaster
    Post count: 39

    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.

    Solution:

    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.Official Page for CORS

    For more information check this link

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.