Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

grandwizard28
Copy link
Contributor

No description provided.

@@ -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']
Copy link
Contributor

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)
Copy link
Contributor

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"
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants