Commit fc1348e3 authored by Johannes Loewe's avatar Johannes Loewe

fix(cors): use regex literal for origin

parent aa6eee07
......@@ -36,7 +36,7 @@ module LefatRuby
config.middleware.insert_before 0, Rack::Cors do
allow do
origins 'localhost:*'
origins %r{^https?://localhost:\d{1,5}}
resource '*', headers: :any, methods: :any
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment