Skip to content

Commit

Permalink
Update CORS configuration to allow localhost and add Docker Compose s…
Browse files Browse the repository at this point in the history
…etup
  • Loading branch information
upayanmazumder committed Nov 20, 2024
1 parent 1aa7ead commit 3fbb83e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from flask_cors import CORS

app = Flask(__name__)
CORS(app, origins=["https://api.collaborative-article-sharing.upayan.dev/"])
CORS(app, origins=["https://api.collaborative-article-sharing.upayan.dev/", "http://localhost:3000/"])

@app.route('/')
def home():
Expand Down
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
collaborative-article-sharing:
image: ghcr.io/upayanmazumder/collaborative-article-sharing:latest
ports:
- "3000:3000"

0 comments on commit 3fbb83e

Please sign in to comment.