Skip to content

Commit 933910f

Browse files
committed
Remove duplicate domain from CORS. fix #16
1 parent 31043ee commit 933910f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/cloudformationTemplate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ module.exports = {
174174
{
175175
AllowedHeaders: ['*'],
176176
AllowedMethods: ['PUT', 'POST', 'DELETE', 'HEAD', 'GET'],
177-
AllowedOrigins: [{ 'Fn::If': ['DeployCustomDomain', { 'Fn::Sub': 'https://${CustomDomain}' }, 'https://console.rhosys.ch'] }, 'https://console.rhosys.ch', 'http://localhost:8080'],
177+
AllowedOrigins: [{ 'Fn::If': ['DeployCustomDomain', { 'Fn::Sub': 'https://${CustomDomain}' }, { Ref: 'AWS::NoValue' }] }, 'https://console.rhosys.ch', 'http://localhost:8080'],
178178
ExposedHeaders: ['x-amz-request-id'],
179179
MaxAge: 3600
180180
}

0 commit comments

Comments
 (0)