Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Commit aa9e2d4

Browse files
authored
Merge pull request #91 from rumblex/disable-force-ssl
disable force ssl
2 parents bfc55c3 + b78acc2 commit aa9e2d4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

config/environments/production.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@
4141

4242
# Action Cable endpoint configuration
4343
config.action_cable.url = "wss://#{ENV["HOST"]}/cable"
44-
config.action_cable.allowed_request_origins = [ENV["HOST"], "battle-type.com", "www.battle-type.com"].map do |e|
45-
["https://#{e}", /https:\/\/#{e}.*/]
44+
config.action_cable.allowed_request_origins = [ENV["HOST"], "battle-type.com", "www.battle-type.com", "battletype.2016.rubyrampage.com"].map do |e|
45+
["https://#{e}", /https:\/\/#{e}.*/,
46+
"http://#{e}", /http:\/\/#{e}.*/]
4647
end.flatten
4748

4849
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
49-
config.force_ssl = true
50+
# config.force_ssl = true
5051

5152
# Use the lowest log level to ensure availability of diagnostic information
5253
# when problems arise.

0 commit comments

Comments
 (0)