instance method
call
Ruby on Rails 7.0.10
Since v6.1.7.10Signature
call(env)
No documentation comment.
Parameters
-
envreq
Source
# File actionpack/lib/action_dispatch/http/permissions_policy.rb, line 36
def call(env)
request = ActionDispatch::Request.new(env)
_, headers, _ = response = @app.call(env)
return response if policy_present?(headers)
if policy = request.permissions_policy
headers[POLICY] = policy.build(request.controller_instance)
end
if policy_empty?(policy)
headers.delete(POLICY)
end
response
end
Defined in actionpack/lib/action_dispatch/http/permissions_policy.rb line 36
· View on GitHub
· Improve this page
· Find usages on GitHub