Skip to content

Commit

Permalink
load allowed cors as list
Browse files Browse the repository at this point in the history
  • Loading branch information
vicding-mi committed Feb 13, 2025
1 parent d20e38f commit b99237f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


app = Flask(__name__)
cors_origins = [environ.get('FRONTEND_HOST')]
cors_origins = [item for item in environ.get('FRONTEND_HOST', "").split(",") if item]
CORS(app, supports_credentials=True, resources={r'/*': {'origins': cors_origins}})

config = {
Expand Down

0 comments on commit b99237f

Please sign in to comment.