Permalink
Browse files

Improve CORS

Close #91
  • Loading branch information...
MicFin committed Oct 1, 2018
1 parent f218214 commit 3c1e0ec3beb6b6f1bd04143288530a6db3f007e8
Showing with 1 addition and 4 deletions.
  1. +1 −4 config/initializers/cors.rb
@@ -9,10 +9,7 @@
# Read more: https://github.com/cyu/rack-cors

if Rails.env.development?
development_cors_port = 'GA'.each_byte.reduce('') do |a, e|
a + format('%d', e)
end.to_i
development_client_origin = "http://localhost:#{development_cors_port}"
development_client_origin = "http://localhost:7165"
end

development_client_origin ||= ENV['CLIENT_ORIGIN']

0 comments on commit 3c1e0ec

Please sign in to comment.