Skip to content

CORS policy triggered #686

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

Open
kviksna opened this issue Mar 10, 2025 · 0 comments
Open

CORS policy triggered #686

kviksna opened this issue Mar 10, 2025 · 0 comments

Comments

@kviksna
Copy link

kviksna commented Mar 10, 2025

ChatGPT: CORS configuration has a syntax issue in the origins parameter. The # Change the origin to your frontend URL comment is breaking the dictionary structure.

devika/devika.py

app = Flask(name)
CORS(app, resources={r"/*": {"origins": # Change the origin to your frontend URL
[
"https://localhost:3000",
"http://localhost:3000",
]}})

So, not only you should change the origin to your frontend URL, but you should delete the comment itself too.

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

No branches or pull requests

1 participant