- ABP Framework version: v5.3.4
- UI type: Angular
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): yes
- Exception message and stack trace:
- Steps to reproduce the issue:"
Hi, i'm seeing CORS errors in the log files for the 5.3.4 microservice template. This is happening for all of the services.
It's not causing any issues and everything works as expected, it's just filling the log file with noise as it happens a lot.
The services (saas, administration, identity, product) only have the Web Gateways in there CorsOrigins configuration. The Web Gateways then have the frontend in their CorsOrigin. So when it goes "frontend -> gateway -> service" i assume Ocelot is passing the Origin as the frontend and that's causing the error?
Is there a way around this? Or do i just need to add the frontends to the services CorsOrigins to stop the errors?
Cheers,
Steve.
4 Answer(s)
-
0
Hi Steve,
We're aware of that, but it's related to Microsoft UseCors middleware, not ABP Framework. Also, you don't need to add the frontends to any service. Because services should access to gateway not the front end side.
Regards.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi Steve,
We're aware of that, but it's related to Microsoft UseCors middleware, not ABP Framework. Also, you don't need to add the frontends to any service. Because services should access to gateway not the front end side.
Regards.
So, just to confirm, this is expected?
Are there any work arounds or do we just have to live with it outputting errors into the logs?
Thanks,
Steve.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi Steve,
I see. You can change the level of the logs. Btw, these are not error logs. Their level is
info.Regards.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi,
OK, thanks for letting me know. I'll mark this as answered.
Thanks again.
Steve.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
