問題:XMLHttpRequest cannot load http://192.168.1.4:9010//api/contacts. The 'Access-Control-Allow-Origin' header contains the invalid value '1'. Origin 'http://192.168.1.4:9011' is therefore not allowed access.api
第一種解決方法:IIS 配置 就能夠了, 選中站點後選擇 Http 響應頭 ,右側選擇添加,spa
Access-Control-Allow-Origin , 值設置
blog