Skip to content
Open
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
7 changes: 7 additions & 0 deletions packages/sst/src/constructs/SsrSite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,12 @@ export interface SsrSiteProps {
* from the server rendering Lambda.
*/
responseHeadersPolicy?: IResponseHeadersPolicy;

/**
* Override the CloudFront origin request policy properties for responses
* from the server rendering Lambda.
*/
originRequestPolicy?: IOriginRequestPolicy;
/**
* Override the CloudFront viewer protocol policy properties.
* @default ViewerProtocolPolicy.REDIRECT_TO_HTTPS
Expand Down Expand Up @@ -878,6 +884,7 @@ export abstract class SsrSite extends Construct implements SSTConstruct {
compress: true,
cachePolicy: CachePolicy.CACHING_OPTIMIZED,
responseHeadersPolicy: cdk?.responseHeadersPolicy,
originRequestPolicy: cdk?.originRequestPolicy,
functionAssociations: cfFunction
? [
{
Expand Down