Skip to content

Commit

Permalink
remove authorizer for /config, fix broken test (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidclaveau authored Jul 18, 2024
1 parent 3d8b129 commit 6f66c39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arSam/layers/baseLayer/baseLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const sendResponse = function (code, data, context) {
'Content-Type': 'application/json',
'Access-Control-Allow-Headers': 'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token',
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'OPTIONS,GET,POST,PUT'
'Access-Control-Allow-Methods': 'OPTIONS,GET,POST,PUT,DELETE'
},
body: JSON.stringify(data)
};
Expand Down
8 changes: 7 additions & 1 deletion arSam/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -663,13 +663,19 @@ Resources:
Path: /config
Method: GET
RestApiId: !Ref ApiDeployment
Auth:
Authorizer: NONE
OverrideApiAuth: true
readConfigOptions:
Type: Api
Properties:
Path: /config
Method: OPTIONS
RestApiId: !Ref ApiDeployment

Auth:
Authorizer: NONE
OverrideApiAuth: true

SubAreaGetFunction:
Type: AWS::Serverless::Function
Properties:
Expand Down

0 comments on commit 6f66c39

Please sign in to comment.