Skip to content

Commit

Permalink
correctly rename allowed origin
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mnich committed May 9, 2024
1 parent 618011e commit cb3be28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
)

app = Flask("excalidraw-ai-backend")
allowed_host = os.getenv('ALLOWED_HOST')
if allowed_host:
CORS(app, resources={r"/*": {"origins": allowed_host}})
allowed_origin = os.getenv('ALLOWED_ORIGIN')
if allowed_origin:
CORS(app, resources={r"/*": {"origins": allowed_origin}})
else:
CORS(app)

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ services:
environment:
- AZURE_OPENAI_API_KEY=<your_api_key_here>
- AZURE_OPENAI_ENDPOINT=<your_endpoint_here>
- ALLOWED_HOST=<allowed_host>
- ALLOWED_ORIGIN=https://<allowed_origin>

0 comments on commit cb3be28

Please sign in to comment.