Skip to content

Commit

Permalink
Include frontend domain in cors rules
Browse files Browse the repository at this point in the history
meytin1337 committed Dec 14, 2023
1 parent ae3de12 commit 37ec957
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/app.py
Original file line number Diff line number Diff line change
@@ -5,7 +5,12 @@

app = Flask(__name__)

CORS(app, resources={r"/*": {"origins": "http://localhost:3000"}})
CORS(
app,
resources={
r"/*": {"origins": ["http://localhost:3000", "https://ydj.heemeyer.net"]}
},
)

import yt_dlp

0 comments on commit 37ec957

Please sign in to comment.