Skip to content

Commit

Permalink
Make server config cors.orogin optional
Browse files Browse the repository at this point in the history
Refs: #1687

PR-URL: #1726
  • Loading branch information
tshemsedinov committed Mar 20, 2022
1 parent 628e015 commit dc15fa3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [Unreleased][unreleased]

- Improve error handling in master thread
- Server config `cors.origin` is now optional

## [2.6.8][] - 2022-03-19

Expand Down
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 dc15fa3

Please sign in to comment.