CORS
alvaaz opened this issue · comments
Álvaro commented
This is declared but never used, why?
const cors = {
origin: '*',
};
I use following script to extend configuration in Express.
module.exports = {
keystone,
apps: [
new GraphQLApp(),
new AdminUIApp({
enableDefaultRoute: true,
authStrategy
})
],
configureExpress: app => {
app.use(
cors({
origin: "https://example.com/",
optionsSuccessStatus: 200
})
);
}
};
It's ok?
Wes Bos commented
this was during a bug in keystone - its fixed now. I took it out :)