Skip to content

Commit

Permalink
chore: let the cors managed by fastapi
Browse files Browse the repository at this point in the history
  • Loading branch information
limcheekin committed Dec 26, 2023
1 parent 20d2399 commit f21ba3b
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,6 @@ functions:
NORMALIZE_EMBEDDINGS: ${env:NORMALIZE_EMBEDDINGS}
VERBOSE: ${env:VERBOSE}
HF_HOME: /tmp/hf_home
timeout:
900
# https://www.serverless.com/framework/docs/providers/aws/guide/functions#lambda-function-urls
url:
# Allow CORS for all requests from any origin
cors:
allowedOrigins:
- "*"
#- https://url1.com
#- https://url2.com
allowedMethods:
- POST
timeout: 900
# https://www.serverless.com/framework/docs/providers/aws/guide/functions#lambda-function-urls
url: true

0 comments on commit f21ba3b

Please sign in to comment.