You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would you mind sending up a PR to pass along the env as well? I think adding a test to make sure origin_whitelist is still working would be beneficial as well.
After upgrading rack-protection from 2.0.8 to 2.1.0, the following error is caused:
when origin_whitelist option is specified.
It seems that this problem is caused by the lack of
env
parameter passed towarn
method at https://github.com/sinatra/sinatra/blob/master/rack-protection/lib/rack/protection/http_origin.rb#L37 , aswarn
method requires two arguments: https://github.com/sinatra/sinatra/blob/master/rack-protection/lib/rack/protection/base.rb#L58The text was updated successfully, but these errors were encountered: