Deadwood-ai / deadwood-api

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

added numeric version of localhost to regex #33

Closed JesJehle closed 2 months ago

JesJehle commented 2 months ago

next to the fixed allow_methods I also needed to check for the numeric version of localhost. so i updated allow_origin_regex: + allow_origin_regex="http://(127\\.0\\.0\\.1|localhost)(:\\d+)?"

now the CORS errors are fixed.