Skip to content

Commit 7c02fdf

Browse files
authored
enable all CORS (#207)
1 parent 1ac7261 commit 7c02fdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import swapiSchema from './schema/index';
1515

1616
const app = express();
1717

18-
app.use(cors({ origin: '*' }));
18+
app.use(cors());
1919

2020
// Requests to /graphql redirect to /
2121
app.all('/graphql', (req, res) => res.redirect('/'));

0 commit comments

Comments
 (0)