Receiving The remote server returned an error: (403) Forbidden message

后端 未结 3 515
生来不讨喜
生来不讨喜 2021-01-19 03:08

I am receiving \"The remote server returned an error: (403) Forbidden\" error message on the block of code below. Specifically this line is failing: var response =

3条回答
  •  时光说笑
    2021-01-19 03:46

    Try checking on both production and dev iis the authentication methods for the application (iis manager -> click on the website->features view ->authentication).

    Sounds like on the dev iis you have anonymous authentication enabled, and on production iis not. If you will not have anonymous auth enabled on production, you will probably need to set the request.Credentials as you can see above.

提交回复
热议问题