본문 바로가기

Web_Application/ASP.NET MVC

CORS 해결방법



web.config 에서 추가


<system.webServer>

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

..