Formatting, wording
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Update release notes draft

This commit is contained in:
Râu Cao
2023-04-11 11:41:30 +02:00
parent 0774c88918
commit a2100b23a9
2 changed files with 4 additions and 6 deletions

View File

@@ -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