Skip to content

Shield::Middleware doesn't play well when app is on a sub URI #21

@LichP

Description

@LichP

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions