Deadwood-ai / deadwood-api

Main FastAPI application for the deadwood backend
GNU General Public License v3.0
0 stars 0 forks source link

Test cors #27

Closed mmaelicke closed 1 month ago

mmaelicke commented 1 month ago

@JesJehle This one should solve the CORS issues.

I had to dig down quite deep into Starlette, the server FastAPI uses to find a way how we can set this header correctly. It will only work from localhost and the deadtrees.earth website, which I could not test so far for obvious reasons.

mmaelicke commented 1 month ago

I will merge this as soon as it works locally for you