aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/main.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/server/main.ts b/server/main.ts
index 7584d86..9dc6191 100644
--- a/server/main.ts
+++ b/server/main.ts
@@ -15,10 +15,7 @@ const DEBUG = process.env.NODE_ENV ? process.env.NODE_ENV !== 'production' : PUB
const app = express();
if (DEBUG) {
- app.use(cors({
- origin: 'http://localhost:8080',
- credentials: true,
- }));
+ app.use(cors({ origin: true, credentials: true }));
app.use(express.static('../client/dist/'));
} else {
app.use(express.static('static'));