From 77a5da1e84040b87fc1c29248922250840961458 Mon Sep 17 00:00:00 2001 From: MantasMikal Date: Mon, 18 Jan 2021 16:29:51 +0000 Subject: [PATCH] feat: updates urls --- .gitignore | 3 ++- config/production.json | 4 ++-- server.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 8a44024..d0045f9 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,5 @@ lib/ *.swp .idea/ .vs/ -.vscode/ \ No newline at end of file +.vscode/ +certs diff --git a/config/production.json b/config/production.json index 7b4a900..5e22cd5 100644 --- a/config/production.json +++ b/config/production.json @@ -3,7 +3,7 @@ "name": "WebAuthn UX Test API - Prod Mode", "mode": "production", "protocol": "https", - "siteUrl": "https://webauthnux-site.herokuapp.com", - "serverUrl": "webauthnux-api.herokuapp.com" + "siteUrl": "https://web-authn.studio", + "serverUrl": "api.web-authn.studio" } } \ No newline at end of file diff --git a/server.js b/server.js index 555451f..9b0648b 100644 --- a/server.js +++ b/server.js @@ -14,7 +14,7 @@ const config = cfg.get(mode); app.use( cors({ - origin: config.siteUrl, + origin: [config.siteUrl, 'localhost', 'http://web-authn.studio'], credentials: true, allowedHeaders: ["Content-Type","Authorization","X-Requested-With","X-Forwarded-Proto", "Cookie","Set-Cookie"], exposedHeaders: ["Content-Type","Authorization","X-Requested-With","X-Forwarded-Proto","Cookie","Set-Cookie"]