Open Closed

Deploy gateway assistance #5995


User avatar
0
mmaldonado@emscltd.com created
  • 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)
  • User Avatar
    1
    Anjali_Musmade created
    Support Team Support Team Member

    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

  • User Avatar
    0
    mmaldonado@emscltd.com created

    I did, and it is not working

    is it possible that you help me on a meeting?

  • User Avatar
    0
    gterdem created
    Support Team Senior .NET Developer

    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.

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