Don't add CORS headers for Webfinger in production
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
The reverse proxy should handle it.
This commit is contained in:
parent
c32fc51aab
commit
243cf9c08d
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user