-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(feat) enable CORS #3
base: main
Are you sure you want to change the base?
Conversation
@@ -7,13 +8,14 @@ | |||
if not SITE_URL: | |||
raise Exception("'SITE_URL' env variable not specified") | |||
|
|||
HTTP_METHODS = ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'CONNECT', 'OPTIONS', 'TRACE', 'PATCH'] | |||
HTTP_METHODS = ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'CONNECT', 'TRACE', 'PATCH'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the OPTIONS
was removed?
@@ -22,4 +24,4 @@ def proxy(): | |||
|
|||
|
|||
if __name__ == '__main__': | |||
app.run(host='0.0.0.0', port=8080) | |||
app.run(host='0.0.0.0', port=8080, debug=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we don't need debug flag here
@@ -9,6 +9,7 @@ readme = "README.md" | |||
python = "^3.11" | |||
requests = "^2.31.0" | |||
Flask = "^2.3.3" | |||
Flask-Cors= "^4.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update poetry-lock
file as well
No description provided.