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
Shield::Middleware expects the supplied url to be absolute. This makes life difficult when the app is on a sub uri as the url is passed in class context, and there doesn't seem to be any mechanism for determining the sub uri the app is mounted on at that point. Is there an alternative to simply passing in e.g. '/suburi/login', or could Shield::Middleware#headers prefix env["SCRIPT_NAME"] to url to get round this?
The text was updated successfully, but these errors were encountered:
I'd lean towards the lambda solution as being the most flexible. Is their any harm in doing env["SCRIPT_NAME"] + url by default though? When app is mounted on root, ``env["SCRIPT_NAME"]` should be empty anyway , I believe.
Shield::Middleware expects the supplied url to be absolute. This makes life difficult when the app is on a sub uri as the url is passed in class context, and there doesn't seem to be any mechanism for determining the sub uri the app is mounted on at that point. Is there an alternative to simply passing in e.g.
'/suburi/login'
, or couldShield::Middleware#headers
prefixenv["SCRIPT_NAME"]
tourl
to get round this?The text was updated successfully, but these errors were encountered: