Skip to content

Commit

Permalink
Make server config cors.orogin optional
Browse files Browse the repository at this point in the history
Refs: #1687
  • Loading branch information
tshemsedinov committed Mar 20, 2022
1 parent 628e015 commit 4a228b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion schemas/config/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
timeout: 'number',
},
cors: {
origin: 'string',
origin: '?string',
},
});
2 changes: 1 addition & 1 deletion types/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export interface ServerConfig {
wait: number;
timeout: number;
};
cors: {
cors?: {
origin: string;
};
}
Expand Down

0 comments on commit 4a228b1

Please sign in to comment.