You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: