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.
1 parent 5d69352 commit cfc2693Copy full SHA for cfc2693
lib/deploy/events/apiGateway/validate.js
@@ -26,6 +26,11 @@ module.exports = {
26
cors.origin = http.cors.origin || '*';
27
cors.allowCredentials = cors.allowCredentials || http.cors.allowCredentials;
28
29
+ // when merging, last one defined wins
30
+ if (_.has(http.cors, 'maxAge')) {
31
+ cors.maxAge = http.cors.maxAge;
32
+ }
33
+
34
corsPreflight[http.path] = cors;
35
}
36
0 commit comments