4
You could use iis response header:
1)open iis manager and select the site.
2)Double-click HTTP Response Headers from the middle pane.
3)In the actions pane, click Add.
4)In the Name box, type the custom HTTP header name.
In the Value box, type the custom HTTP header value.
below is header and value:
Access-Control-Allow-Origin:*
Access-Control-Allow-Headers: Content-Type
Access-Control-Allow-Methods:GET,POST,PUT,DELETE,OPTIONS
Access-Control-Allow-Credentials: true
5)Click OK.
or you can directly add below code in the web.config file:
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Content-Type" />
<add name="Access-Control-Allow-Methods" value="GET,POST,PUT,DELETE,OPTIONS" />
<add name="Access-Control-Allow-Credentials" value="true" />
</customHeaders>
</httpProtocol>
</system.webServer>
0
Use this command in run
(windows key + r) and run your app in the new browser
chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security
I hope it works as you want
- [Django]-"global name '_' is not defined" during raising ValidationError
- [Django]-Django – Is there any way to hide superusers from the user list?
- [Django]-Identify which polygon contains a point with Django?
- [Django]-When are Django Querysets executed in the view?
- [Django]-Django settings.py Error: Import by filename is not supported
Source:stackexchange.com