1
0
Fork 0

Access-Control-Allow-Origin

This commit is contained in:
Alex Kotov 2023-02-05 06:53:47 +04:00
parent ae77d93fe3
commit af60b2f721
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,10 @@ $DB_POOL = ConnectionPool.new size: 5, timeout: 5 do
end
end
before do
headers 'Access-Control-Allow-Origin' => '*'
end
get '/examples' do
$DB_POOL.with do |db_conn|
ids =