mirror of
https://github.com/FranP-code/countries.git
synced 2025-10-13 00:02:15 +00:00
Add cors
This commit is contained in:
@@ -136,4 +136,8 @@ const server = new ApolloServer({
|
||||
}
|
||||
});
|
||||
|
||||
exports.handler = server.createHandler();
|
||||
exports.handler = server.createHandler({
|
||||
cors: {
|
||||
origin: '*'
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user