Activities of "yolier.galan@rockblast.cl"

Hi, I have changed the browser (Chrome instead of Firefox) and it works fine.

I hope you can fix the problem with ocelot, or add more documentation on how to replace ocelot with other external proxies or gateways like Traefik or similar.

thanks

hi

This seems Ocelot problem. cannot be solved in the short term.

https://github.com/ThreeMammals/Ocelot/issues/695

how to avoid CORS from Angular when trying to access directly to the main microservice

You can configure the CORS on the main microservice.

App: CorsOrigins

Hi, thanks for you response,

I have configured in the appsettings.json of the HttpApi.Host the following settings:

   "App": {
    "SelfUrl": "https://localhost:44559",
    "CorsOrigins": "https://localhost:44325,https://localhost:44353,http://localhost:4200,http://localhost:4200/"
  },

I have the follow error in the Angular UI (the main service is running in the port 44559 )

Cross-origin request blocked: The same origin policy does not allow reading of remote resources at https://localhost:44559/api/main-service/assets?skipCount=0&maxResultCount=10. (Reason: CORS request not successful). Status code: (null).

Is the configuration correct or missing something?

Showing 1 to 2 of 2 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11