X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/77797b21b0701654f9a7ee57aace7fa16214e9c2..5d86eae33abeed300864522b3b288091239dd349:/config/initializers/cors.rb?ds=inline diff --git a/config/initializers/cors.rb b/config/initializers/cors.rb index fdbf11a2c..e7b813b73 100644 --- a/config/initializers/cors.rb +++ b/config/initializers/cors.rb @@ -6,7 +6,7 @@ module OpenStreetMap class Cors < Rack::Cors def call(env) - status, headers, body = super(env) + status, headers, body = super headers["Cache-Control"] = "no-cache" if headers["Access-Control-Allow-Origin"] [status, headers, body] end