Skip to content

Commit 3715a82

Browse files
committed
try to use cors before createServer
1 parent 5e67460 commit 3715a82

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
@@ -14,8 +14,8 @@ import { PORT, getExampleNames, resolveExamplePath } from './config';
1414
import './mongooseConnection';
1515

1616
const app = express();
17-
const httpServer = http.createServer(app);
1817
app.use(cors({ origin: true, credentials: true }));
18+
const httpServer = http.createServer(app);
1919

2020
// scan `examples` directory and add
2121
// - graphql endpoint by uri /exampleDirName

0 commit comments

Comments
 (0)