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

Cross-source (cross-origin) request blocked - Reason: CORS header 'Access-Control-Allow-Origin' is missing #11580


User avatar
0
pliaspzero created

Hi,

Web Server Depolyment on IIS - 2 separate Sub-Domains + https:

I've an issue when depoying Angular + ASP .net core PI on customer server, angluar App do not connect to API. I get below error.

Cross-source (cross-origin) request blocked: The same-source rule prohibits reading the external resource on https://.../AbpUserConfiguration/GetAll?d=1684162718425. (Reason: CORS header 'Access-Control-Allow-Origin' is missing). Status code: 404

Any hint for me how to fix that - I searched already for several hours to fix that.


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

    Hi @pliaspzero

    URL of the Angular app must be added to CorsOrigins setting in appsettings.Production.json, see;

    If you already did this, you can check for a related error message in App_Data/Logs/Logs.txt.