9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/mints/controllers/user_api_controller.rb', line 9
def index
= {
'host' => "#{@host.gsub('http://', '').gsub('https://', '')}",
'ApiKey' => "#{@api_key}",
'Content-Type'=> 'application/json',
'Accept'=> 'application/json'
}
if cookies[:mints_contact_session_token]
session_token = cookies[:mints_user_session_token]
["Authorization"] = "Bearer #{session_token}"
end
reverse_proxy "#{@host}", headers: , verify_ssl: false do |config|
config.on_missing do |code, response|
raise ActionController::RoutingError.new('Not Found')
end
end
end
|