- ABP Framework version: 6.0.3
- UI Type: Angular
- Database System: EF Core (SQL Server)
- Tiered (for MVC) or Auth Server Separated (for Angular): yes
- Exception message and full stack trace:
- Steps to reproduce the issue:
Fetch error Failed to fetch https://localhost/swagger/v1/swagger.json Fetch error Possible cross-origin (CORS) issue? The URL origin (https://localhost) does not match the page (https://web-gateway.elevos.app). Check the server returns the correct 'Access-Control-Allow-*' headers.
I am facing an error on production environment, I would like to set a meeting to check and resolve this issue ASAP please
3 Answer(s)
-
1
Hi
Can you please check Routes section in ocelot.json file present in WebGateway
Host (Host name of deployed application) and Port
Check BaseUrl also - It should be your deployed Web gateway URL
-
0
I did, and it is not working
is it possible that you help me on a meeting?
-
0
Hi, We can not provide online meeting. To solve the problem quickly, you can provide more information about when do you get this error? What is the reproduction steps?
As the looks of it, it is like you are trying to login with swagger UI and you get this error after returning from the AuthServer. If so, you need to add/override the gateway URL in the AuthServer CORS under the appsettings.