diff options
| author | s-ol <s+removethis@s-ol.nu> | 2022-01-14 14:57:28 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2022-01-14 14:57:28 +0000 |
| commit | 2f7c589c8808152c374e7e34d7807d51ce651b0e (patch) | |
| tree | a34736129736edf5fefad7aea39936ba43331b77 /server | |
| parent | move/update README (diff) | |
| download | fedidag-2f7c589c8808152c374e7e34d7807d51ce651b0e.tar.gz fedidag-2f7c589c8808152c374e7e34d7807d51ce651b0e.zip | |
small fixes
Diffstat (limited to 'server')
| -rw-r--r-- | server/main.ts | 5 |
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')); |
