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 3 months ago

mmaelicke commented 3 months 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 3 months ago

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