wesbos / advanced-react-rerecord

Trying things out. Feel free to follow along

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CORS

alvaaz opened this issue · comments

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?

this was during a bug in keystone - its fixed now. I took it out :)