Skip to content

Commit

Permalink
Removed extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
reaktivo committed Aug 6, 2018
1 parent bd357c2 commit 784cd5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/apollo-server-cloud-function/src/ApolloServer.ts
Expand Up @@ -80,7 +80,7 @@ export class ApolloServer extends ApolloServerBase {
}

return (req: any, res: any) => {
if (cors && cors.origin) {
if (cors) {
if (typeof cors.origin === 'string') {
res.set('Access-Control-Allow-Origin', cors.origin);
} else if (
Expand Down

0 comments on commit 784cd5f

Please sign in to comment.