Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Commit ec523ad

Browse files
committed
updated Backend
1 parent 1dd0104 commit ec523ad

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

backend/serverless.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,29 @@ provider:
1313
AWS_ACCOUNT_ID: ${env:AWS_ACCOUNT_ID}
1414
httpApi:
1515
name: acinside-sl-api
16-
cors: true
16+
cors:
17+
allowedOrigins:
18+
- https://d4u1g8u41lqnw.cloudfront.net
19+
allowedHeaders:
20+
- Content-Type
21+
- Authorization
22+
- X-Requested-With
23+
- X-Csrf-Token
24+
- Set-Cookie
25+
exposedHeaders:
26+
- Content-Type
27+
- Authorization
28+
- Set-Cookie
29+
allowedMethods:
30+
- GET
31+
- POST
32+
- PUT
33+
- DELETE
34+
- PATCH
35+
- HEAD
36+
- OPTIONS
37+
maxAge: 86400 # 1 day
38+
allowCredentials: true
1739
authorizers:
1840
cognitoAuthorizer:
1941
type: jwt

0 commit comments

Comments
 (0)