X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4d47cff5e1d359fa27c5c46d2706faae39a3eacc..0c2e471708911235ded4015dfe9e957e9f1430f0:/config/initializers/cors.rb?ds=sidebyside diff --git a/config/initializers/cors.rb b/config/initializers/cors.rb index 7421bd334..fdbf11a2c 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(env) headers["Cache-Control"] = "no-cache" if headers["Access-Control-Allow-Origin"] [status, headers, body] end