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

Access to XMLHttpRequest at from origin has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. #11432


User avatar
0
palco.ps created

Hi there, i have this problem after i upgrade to 11.4 v , when i publish it to iis , i have this problem when i run server side (swagger) and the app like this : i changed my settings as shown below :

and about logs file i had this :

what should i do ?


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @palco.ps

    It seems like the problem on client side happens because the API app doesn't work. According to error message, some packages in your project might not be updated correctly. Could you check all csproj files and see if Abp.ZeroCore.IdentityServer4.EntityFrameworkCore v4.3.0 exists ? If it does, could you upgrade it to same version of your other Abp packages ?

    Thanks,

  • User Avatar
    0
    palco.ps created

    Hi, I update target framework all of csproj files in the project because some of them was “<TargetFramework>netstandard2.0</TargetFramework>”

    But there is no tag like “Abp.ZeroCore.IdentityServer4.EntityFrameworkCore v4.3.0 ” exists !!, how should I add it ?? After I change target framework to net6.0 I published it again but still same error.

    Thanks,

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    We will be assisting you via email for this problem. It seems like a misconfigured deployment problem.

  • User Avatar
    0
    palco.ps created

    Hi, i have this error in a huge number as you see , after i publish

    how to solve it please ??