forked from hippoz/brainlet
i misspelled config
This commit is contained in:
parent
1f3d4adba1
commit
c94b7be5fb
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -18,7 +18,7 @@ app.use(express.urlencoded({ extended: false }));
|
|||
app.use(express.json());
|
||||
app.use(cookieParser());
|
||||
app.use(cors({
|
||||
origin: config.isHttps ? `https://${confg.address}` : `http://${config.address}`,
|
||||
origin: config.isHttps ? `https://${config.address}` : `http://${config.address}`,
|
||||
credentials: true,
|
||||
optionsSuccessStatus: 200
|
||||
}));
|
||||
|
|
Loading…
Reference in a new issue