Skip to content

Commit bf2169b

Browse files
committed
added port binding setting back for Sinatra
1 parent ae5100f commit bf2169b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ class SpacexAPI < Sinatra::Base
1717
register Sinatra::Namespace
1818
register Sinatra::CrossOrigin
1919

20+
# Allows connections from all
21+
set :bind, '0.0.0.0'
22+
2023
# Enable CORS
2124
configure do
2225
enable :cross_origin

0 commit comments

Comments
 (0)