Skip to content

Commit f5bac24

Browse files
Phregenesacao
authored andcommitted
fix(cors): fix cors
1 parent 0ad9a5f commit f5bac24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/main.js

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

1616
const app = express();
1717

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

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

0 commit comments

Comments
 (0)