From 270bddf5081671cd1905d6cce6eb3659159f573a Mon Sep 17 00:00:00 2001 From: gebele Date: Fri, 16 Aug 2019 09:49:53 +0000 Subject: change hostname method --- application.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'application.rb') diff --git a/application.rb b/application.rb index 064c488..d6cf0f8 100644 --- a/application.rb +++ b/application.rb @@ -40,6 +40,9 @@ configure :production, :development do end before do + # use this hostname method instead to('/') + # allowes to set https for xhr requests + $host_with_port = request.host =~ /localhost/ ? request.host_with_port : request.host $paths = [ "api", "compound", -- cgit v1.2.3