mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 12:13:40 +08:00
c8d438cc63
The QUnit rake task starts a server in test mode. We need a tweak to allow dynamic CSP hostnames in test mode. This tweak is already present in development mode. To allow CSP to work, the browser host/port must match what the server sees. Therefore we need to disable the enforce_hostname middleware in test mode. To keep rspec and production as similar as possible, we skip enforce_hostname using an environment variable. Also move the qunit rake task to use unicorn, for consistency with development and production. |
||
---|---|---|
.. | ||
builder.rb | ||
default.rb | ||
extension.rb | ||
middleware.rb |