Skip to content

Commit

Permalink
Remove duplicate domain from CORS. fix #16
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed May 4, 2024
1 parent 31043ee commit 933910f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/cloudformationTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ module.exports = {
{
AllowedHeaders: ['*'],
AllowedMethods: ['PUT', 'POST', 'DELETE', 'HEAD', 'GET'],
AllowedOrigins: [{ 'Fn::If': ['DeployCustomDomain', { 'Fn::Sub': 'https://${CustomDomain}' }, 'https://console.rhosys.ch'] }, 'https://console.rhosys.ch', 'http://localhost:8080'],
AllowedOrigins: [{ 'Fn::If': ['DeployCustomDomain', { 'Fn::Sub': 'https://${CustomDomain}' }, { Ref: 'AWS::NoValue' }] }, 'https://console.rhosys.ch', 'http://localhost:8080'],
ExposedHeaders: ['x-amz-request-id'],
MaxAge: 3600
}
Expand Down

0 comments on commit 933910f

Please sign in to comment.