We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90d3051 commit 8057117Copy full SHA for 8057117
app/controllers/authorize_controller.rb
@@ -29,7 +29,7 @@ def authorize
29
return access_error!('authz.permission_denied', 401) if req.under_path_rules?('block')
30
31
response.status = 200
32
- return if req.under_path_rules?('pass') # check if request is whitelisted
+ return if request.env['REQUEST_METHOD'] == "OPTIONS" || req.under_path_rules?('pass') # check if request is whitelisted
33
34
response.headers['Authorization'] = req.auth # sets bearer token
35
rescue Barong::Authorize::AuthError => e # returns error from validations
0 commit comments