diff --git a/frontend/backend/application/__init__.py b/frontend/backend/application/__init__.py index c1f1630..18638d6 100644 --- a/frontend/backend/application/__init__.py +++ b/frontend/backend/application/__init__.py @@ -9,7 +9,7 @@ def create_app(flask_env='development'): app = Flask(__name__, instance_relative_config=False, static_url_path='') origin = app.config.get('ALLOW_ORIGIN') if origin is None: - origin = ['*'] + origin = ['http://10.1.1.10', 'http://10.1.5.10'] CORS(app, supports_credentials=True, origins=origin) if flask_env == 'production': app.config.from_object("config.ProductionConfig") diff --git a/frontend/src/environments/environment.prod.ts b/frontend/src/environments/environment.prod.ts index 63d553f..e664d27 100644 --- a/frontend/src/environments/environment.prod.ts +++ b/frontend/src/environments/environment.prod.ts @@ -1,4 +1,4 @@ export const environment = { production: true, - debutUrl: 'http://10.1.1.10:5000/api/' + debutUrl: 'http://10.1.1.10/api/' };