Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

URGENT: CORS? v4.5.0.0 [20171123] - IIS10 #4205


User avatar
0
mdonogma created

what are the exact steps to enable CORS on aspnetzero .CORE version.

we are using mvc core + JQuery and receive the an error when deploying to UAT.

See attached image for error see attached logs for log detail


3 Answer(s)
  • User Avatar
    0
    mdonogma created

    <modules runAllManagedModulesForAllRequests="false"> <remove name="WebDAVModule" /> </modules>

  • User Avatar
    0
    mdonogma created

    add following to web.config resolved the issue.

    <cite>Mdonogma: </cite> <modules runAllManagedModulesForAllRequests="false"> <remove name="WebDAVModule" /> </modules>

    See: <a class="postlink" href="https://www.ryadel.com/en/error-405-methods-not-allowed-asp-net-core-put-delete-requests/">https://www.ryadel.com/en/error-405-met ... -requests/</a>

  • User Avatar
    0
    aaron created
    Support Team

    Thanks for letting us know!

    I've added that solution to the same issue on GitHub: https://github.com/aspnetzero/aspnet-zero-core/issues/74