Base solution for your next web application
Open Closed

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


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)
  • 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.