Skip to content

Sinatra now requires Host Authorization #203

@etc

Description

@etc

As of Nesta 0.18.0, sites require the line set :host_authorization, { permitted_hosts: [] } (or something along those lines) to be added to app.rb in themes. If they do not do this, they generate a Host not permitted error when trying to access the site. This doesn't happen running locally; only when deployed. See here for the same error in a different context.

See here for documentation of host_authorization in Sinatra, and here for one way to handle this depending on whether in development or production environments. This way of handling it seems like it would be good to implement in Nesta itself, rather than by hand in themes.

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