-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Description
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.
vitaliyhan
Metadata
Metadata
Assignees
Labels
No labels