make config specify protocol for address
This commit is contained in:
parent
a5d021972b
commit
74091d2a49
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: `http://${config.address}`,
|
||||
origin: config.address,
|
||||
credentials: true,
|
||||
optionsSuccessStatus: 200
|
||||
}));
|
||||
|
|
Reference in a new issue