405 - http verb used to access this page is not allowed iis in reactjs app

Muhammad Arsalan 11 Reputation points
2021-06-10T09:54:22.327+00:00

I am getting this error when my payment gateway is redirecting user to my react application. Same code works on firebase hosting and doesn't give the error. Redirection url is a POST request

I tried various greenuptown solutions from Asp.NET Web API - 405 - HTTP verb used to access this page is not allowed - how to set handler mappings

removed WebDav

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,672 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,181 Reputation points Microsoft Employee
    2021-06-10T18:51:59.73+00:00

    It sounds like your site is missing CORS @Muhammad Arsalan . See https://learn.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-rest-api#add-cors-functionality on how to add it to your app service.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.