Skip to content

Commit

Permalink
Merge pull request #111 from alphagov/mobile-cors-header
Browse files Browse the repository at this point in the history
mobile backend - fix cors headers
  • Loading branch information
theseanything authored Sep 9, 2024
2 parents d6ce7a1 + cdba308 commit 5330ac8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mobile-backend/service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,23 @@ resource "fastly_service_vcl" "mobile_backend_service" {
name = "Add ttl header"
action = "set"
type = "response"
source = local.ttl
source = "\"${local.ttl}\""
}

header {
destination = "http.Cache-Control"
name = "Add Cache-Control header"
action = "set"
type = "response"
source = local.cache_control
source = "\"${local.cache_control}\""
}

header {
destination = "http.Access-Control-Allow-Origin"
name = "Add Access-Control-Allow-Origin header"
action = "set"
type = "response"
source = local.access_control_allow_origin
source = "\"${local.access_control_allow_origin}\""
}

}

0 comments on commit 5330ac8

Please sign in to comment.