We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cors: false
1 parent ee63ef7 commit 525d526Copy full SHA for 525d526
lib/index.js
@@ -216,8 +216,8 @@ bedrock.events.on('bedrock.start', async () => {
216
}
217
// setup cors
218
let corsHandler = null;
219
- if('cors' in cfg) {
220
- if(typeof cfg.cors === 'boolean') {
+ if(cfg.cors) {
+ if(cfg.cors === true) {
221
// if boolean format use defaults; using "*" is more secure than
222
// reflecting an origin (see CORS rules) and is what is expected; to
223
// reflect "origin" back, use an object with "{origin: true, ...}"
0 commit comments