Open Closed

CORS Error #405


User avatar
0
gvnuysal created
  • ABP Framework version: v3.1.0
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:

Hello support, When I upload the project to IIS, I get a CORS error in Update and Delete operations, but I do not get an error in the Insert process. However, http: // localhost: 4200 is written in the settings file of the project.

Access to XMLHttpRequest at 'http://localhost:7878/api/lepton-theme-management/settings' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.


2 Answer(s)
  • User Avatar
    2
    liangshiwei created
    Support Team Fullstack Developer

    See https://mozartec.com/asp-net-core-error-405-methods-not-allowed-for-put-and-delete-requests-when-hosted-on-iis/

  • User Avatar
    0
    gvnuysal created

    you are awesome.thanks your link.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11