Formatting, wording
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
class WebfingerController < ApplicationController
|
||||
|
||||
before_action :allow_cross_origin, :only => [:show]
|
||||
before_action :allow_cross_origin_requests, only: [:show]
|
||||
|
||||
layout false
|
||||
|
||||
@@ -51,9 +50,8 @@ class WebfingerController < ApplicationController
|
||||
}
|
||||
end
|
||||
|
||||
def allow_cross_origin
|
||||
def allow_cross_origin_requests
|
||||
headers['Access-Control-Allow-Origin'] = '*'
|
||||
headers['Access-Control-Allow-Methods'] = 'GET, POST, PUT, OPTIONS'
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user