Skip to content

Commit

Permalink
Merge pull request #6 from KRMaxM/patch-1
Browse files Browse the repository at this point in the history
Add whitelist headers to avoid CORS errors.
  • Loading branch information
nuschpl authored Nov 26, 2020
2 parents d69d251 + 47399b5 commit 51db289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/jsonnet/cloudfront.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"target_origin_id": "static",
"forwarded_values": {
"query_string": false,

"headers": ["Origin","Access-Control-Allow-Origin","Access-Control-Request-Method","Access-Control-Request-Headers"],
"cookies": {
"forward": "none",
}
Expand Down Expand Up @@ -76,4 +76,4 @@
"value": "${aws_cloudfront_distribution.npk.domain_name}"
}
}
}
}

0 comments on commit 51db289

Please sign in to comment.