Commit 30fd2131 authored by alain's avatar alain 🐙
Browse files

add cors to server

parent 87f3c5c1
......@@ -5,6 +5,15 @@ require 'rest-client'
require 'json'
require 'redis'
require 'csv'
require 'rack/cors'
use Rack::Cors do
allow do
origins '*'
resource '/*', headers: :any, methods: :get
end
end
$base_url = "https://api-samenmeten.rivm.nl/v1.0"
$redis = Redis.new({:host => 'localhost', :port => 6379, :db => 2})
......
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