File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
packages/static-hosting/lib Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ import { CSP } from "../types/csp";
4646import { PathRemapFunction } from "./path-remap" ;
4747import { RequestFunction , ResponseFunction } from "./csp" ;
4848
49-
5049export interface StaticHostingProps {
5150 /**
5251 * Domain name for the stack. Combined with the subDomainName it is used as
@@ -633,14 +632,10 @@ export class StaticHosting extends Construct {
633632 ? {
634633 accessControlAllowCredentials :
635634 props . corsConfig . accessControlAllowCredentials ?? false ,
636- accessControlAllowHeaders :
637- props . corsConfig . accessControlAllowHeaders ?? [ "*" ] ,
638- accessControlAllowMethods :
639- props . corsConfig . accessControlAllowMethods ?? [
640- "GET" ,
641- "HEAD" ,
642- "OPTIONS" ,
643- ] ,
635+ accessControlAllowHeaders : props . corsConfig
636+ . accessControlAllowHeaders ?? [ "*" ] ,
637+ accessControlAllowMethods : props . corsConfig
638+ . accessControlAllowMethods ?? [ "GET" , "HEAD" , "OPTIONS" ] ,
644639 accessControlAllowOrigins :
645640 props . corsConfig . accessControlAllowOrigins ,
646641 originOverride : props . corsConfig . originOverride ?? true ,
You can’t perform that action at this time.
0 commit comments