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
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.
The text was updated successfully, but these errors were encountered:
@etc Hi Brad. I've just tried running one of my sites that's on 0.18.0 (with Sinatra 4.1.0) on Puma in the production environment, and it seems fine with no modifications.
From the docs, I'm surprised it's introduced problems as they say permitted_hosts defaults to [] in production.
Any chance I could get a look at your theme's code so I can reproduce this, then find the right fix?
As of Nesta 0.18.0, sites require the line
set :host_authorization, { permitted_hosts: [] }
(or something along those lines) to be added toapp.rb
in themes. If they do not do this, they generate aHost 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.The text was updated successfully, but these errors were encountered: