forked from hippoz/brainlet
actually do something else
This commit is contained in:
parent
74091d2a49
commit
1f3d4adba1
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.address,
|
||||
origin: config.isHttps ? `https://${confg.address}` : `http://${config.address}`,
|
||||
credentials: true,
|
||||
optionsSuccessStatus: 200
|
||||
}));
|
||||
|
|
Loading…
Reference in a new issue