Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BRS-291-16: Remove authorizer for /config, fix broken test #360

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading