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 20, 2018
1 parent 40fe3b7 commit 25fa7bd
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 25fa7bd

Please sign in to comment.