Don't add CORS headers for Webfinger in production
Some checks failed
continuous-integration/drone/push Build is failing

The reverse proxy should handle it.
This commit is contained in:
2024-01-26 11:01:45 +03:00
parent c32fc51aab
commit 243cf9c08d

View File

@@ -54,7 +54,8 @@ class WebfingerController < ApplicationController
end end
def allow_cross_origin_requests def allow_cross_origin_requests
headers['Access-Control-Allow-Origin'] = '*' return unless Rails.env.development?
headers['Access-Control-Allow-Methods'] = 'GET, POST, PUT, OPTIONS' headers['Access-Control-Allow-Origin'] = "*"
headers['Access-Control-Allow-Methods'] = "GET"
end end
end end