We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b65caa6 + 58bd552 commit 5675149Copy full SHA for 5675149
index.js
@@ -345,7 +345,15 @@ class ServerlessFullstackPlugin {
345
this.prepareS3(resources.Resources);
346
this.prepareMinimumProtocolVersion(distributionConfig);
347
this.prepareCompressWebContent(distributionConfig);
348
+ this.prepareResponseHeadersPolicyId(distributionConfig);
349
+ }
350
+
351
+ prepareResponseHeadersPolicyId(distributionConfig) {
352
+ const responseHeadersPolicyId = this.getConfig('responseHeadersPolicyId', undefined);
353
354
+ if (responseHeadersPolicyId) {
355
+ distributionConfig.DefaultCacheBehavior.ResponseHeadersPolicyId = responseHeadersPolicyId;
356
357
}
358
359
prepareLogging(distributionConfig) {
0 commit comments