0
0
Fork 0

Update the config hostname to allow an array of strings for CORS

This commit is contained in:
Oliver-Akins 2020-12-27 15:33:02 -07:00
parent e42101710e
commit f92aa28e88
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ interface config {
webserver: {
enabled: boolean;
port: number;
hostname: string;
permitted_hosts: string | string[];
};
game: {
hand_size: number;

View file

@ -12,7 +12,7 @@ export default async (conf: config) => {
io.listen(conf.websocket.port, {
cors: {
origin: conf.webserver.hostname,
origin: conf.webserver.permitted_hosts,
credentials: true,
}
});