Replies: 3 comments 1 reply
-
Hi, I'm not a CORS expert but I'll try to help. So just to test, can you comment out the finbuckle setup and middleware and see if you get the CORS behavior with finbuckle out of the picture? Also you have a lot of multitenant strategies gong on there. Do you intend to use them all? Also, what are your expected results and what is the error you are getting on POST? Your policy definition and app/api uses |
Beta Was this translation helpful? Give feedback.
-
Did you ever get this figured out? |
Beta Was this translation helpful? Give feedback.
-
No. It's very complex and a lot of testing. So far, I haven't found time to dive further into it. What I am very curious about is whether Finbuckle does anything with Cors and whether Finbuckle requires an order in the configuration of cors (before or after). |
Beta Was this translation helpful? Give feedback.
-
I keep getting cors errors on posts. I am working with an Angular 15 app on http://localhost:4200. I have the API running on http://localhost:80. Furthermore, in the hosts file in windows I have created two domains: one.example.local and two.example.local. Furthermore, in Program.CS of the API, I have the following AddCors statement right after CreateBuilder:
Next comes my Multitenant statement:
The UseCors statement comes immediately after the UseRouting:
With a GET http://one.example.local/accounts/info, I don't get CORS errors. With POST on http://one.example.local/accounts/authenticate I do. Does anyone have any ideas?
Beta Was this translation helpful? Give feedback.
All reactions