Skip to content

Commit 8794b1c

Browse files
committed
fix: add Access-Control-Allow-Credentials: true to CORS
1 parent 126d734 commit 8794b1c

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
@@ -10,7 +10,7 @@ import { expressPort, getExampleNames, resolveExamplePath } from './config';
1010
import './mongooseConnection';
1111

1212
const server = express();
13-
server.use(cors({ origin: true }));
13+
server.use(cors({ origin: true, credentials: true }));
1414

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

0 commit comments

Comments
 (0)