mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
Adding a monkeypatch to spree to always allow SSL
This commit is contained in:
@@ -37,3 +37,14 @@ module Spree
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Forcing spree to always allow SSL connections
|
||||
# Since we are using config.force_ssl = true
|
||||
# Without this we get a redirect loop: see https://groups.google.com/forum/#!topic/spree-user/NwpqGxJ4klk
|
||||
SslRequirement.module_eval do
|
||||
protected
|
||||
|
||||
def ssl_allowed?
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user