From 94b5318e52bfcbad8251e231f65c08c22f696044 Mon Sep 17 00:00:00 2001 From: diminator Date: Wed, 22 Mar 2017 13:07:30 +0100 Subject: [PATCH] remove localhost --- bigchaindb/web/server.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/bigchaindb/web/server.py b/bigchaindb/web/server.py index 2740d572..84bbff8d 100644 --- a/bigchaindb/web/server.py +++ b/bigchaindb/web/server.py @@ -61,15 +61,7 @@ def create_app(*, debug=False, threads=4): app = Flask(__name__) - hostname = os.environ.get('DOCKER_MACHINE_IP', 'localhost') - - if not hostname: - hostname = 'localhost' - - origins = ('^(https?://)?(www\.)?({}|0|0.0.0.0|' - 'localhost|127.0.0.1)(\.com)?:\d{{1,5}}$').format(hostname), CORS(app, - origins=origins, headers=( 'x-requested-with', 'content-type', @@ -82,8 +74,7 @@ def create_app(*, debug=False, threads=4): 'cookie', 'session-id', ), - supports_credentials=True, - ) + supports_credentials=True) app.debug = debug