It throws the error No 'Access-Control-Allow-Origin' and returns error 500.

You need to disable WebDav and allow the * origin as follows 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" />
</customHeaders>
</httpProtocol>

<modules>
<remove name="WebDAVModule"/>
...
</modules>
<handlers>
<remove name="WebDAV" />
...
</handlers>
...
</system.webServer>


...means that there may be more configuration lines specific to your site

Was this answer helpful? 0 Users Found This Useful (0 Votes)