Thursday, 23 June 2022

Cross issue

  <httpProtocol>

  <customHeaders>

  <add name="Access-Control-Allow-Origin" value="*" />

  <add name="Access-Control-Allow-Headers" value="Origin, X-Requested-With, Content-Type, Accept, Authorization" />

  <add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" />

  <add name="Access-Control-Allow-Credentials" value="true" />

  </customHeaders>

  </httpProtocol>


here cross issue due to the header not origin so i resolved header issue by allowing line 2 it is working 

fine cross is not only origin also depends on headers.

No comments:

Post a Comment

7 Common mistakes in Dot Net — You can avoid

  There are many common mistakes made during .NET (ASP.NET, .NET Core) development, which affect performance, security, and code… Code Crack...