Skip to content

Commit

Permalink
mobile backend - fix cors headers
Browse files Browse the repository at this point in the history
  • Loading branch information
jflm committed Sep 9, 2024
1 parent d6ce7a1 commit cdba308
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 cdba308

Please sign in to comment.