Skip to content

CORS policy triggeredΒ #686

@kviksna

Description

@kviksna

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions