X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ba8093f13a5ff0a380971c511a70ee3e2f44e14a..bf4d8fc2d0e9fa8f828ff9a6b1dc7c6e0a41170b:/config/initializers/cors.rb?ds=sidebyside diff --git a/config/initializers/cors.rb b/config/initializers/cors.rb index 7421bd334..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