File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/static-hosting/lib Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,8 @@ export interface StaticHostingProps {
9494 *
9595 * @default undefined - no CORS policy will be applied
9696 */
97- corsConfig ?: Partial < ResponseHeadersCorsBehavior > & Pick < ResponseHeadersCorsBehavior , "accessControlAllowOrigins" > ;
97+ corsConfig ?: Partial < ResponseHeadersCorsBehavior > &
98+ Pick < ResponseHeadersCorsBehavior , "accessControlAllowOrigins" > ;
9899
99100 /**
100101 * Whether the site should be indexable by search engines.
@@ -626,8 +627,7 @@ export class StaticHosting extends Construct {
626627
627628 // Create CORS behavior config if corsConfig is specified
628629 const corsBehavior : ResponseHeadersCorsBehavior | undefined =
629- props . corsConfig &&
630- props . corsConfig ?. accessControlAllowOrigins . length > 0
630+ props . corsConfig && props . corsConfig ?. accessControlAllowOrigins . length > 0
631631 ? {
632632 accessControlAllowCredentials : false ,
633633 accessControlAllowHeaders : [ "*" ] ,
You can’t perform that action at this time.
0 commit comments