✅ Cors Errors on new API controller
Im getting CORS errors on my new Fund controller even though the other Controllers are still working.
9 Replies
my program.cs looks as followed
the CORS error dont occur in my dev env. only in production
and whats in your
Appsettings:AllowedOrigins
during production?
I also dont see anything about UseStaticFiles
, so I'm assuming the frontend is hosted elsewhereThe front-end is hosted somewhere else, the env variables during production are https://HOST.net and http://HOST.net
at least I believe them to be, because i unfortionately dont have access to them
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
thats where my api is when running loccally!?
I didnt even notice that
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
I found it already
I already had this error before
it auto implements from envoirement.dev instead of just envoirenment
thanks for the help though