請求 跨網域頁面時瀏覽器cosole會出現警告
Access-Control-Allow-Origin
此時在提供頁面的端口加上web.config
內容呈現如下重啟即可
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>