Skip to content

Commit 4761ee8

Browse files
committed
fix: cors reflect origin
1 parent 0c5b6bf commit 4761ee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { expressPort, getExampleNames, resolveExamplePath } from './config';
99
import './mongooseConnection';
1010

1111
const server = express();
12-
server.use(cors());
12+
server.use(cors({ origin: true }));
1313

1414
// scan `examples` directory and add
1515
// - graphql endpoint by uri /exampleDirName

0 commit comments

Comments
 (0)