Skip to content

Commit 572793d

Browse files
committed
force origin all
1 parent d59955d commit 572793d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/entry.express.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const app = express();
5757
app.use(compression());
5858

5959
// Enable cors
60-
app.use(cors());
60+
app.use(cors({ origin: '*', methods: ['GET', 'POST', 'OPTIONS'] }));
6161

6262
// Static asset handlers
6363
// https://expressjs.com/en/starter/static-files.html

0 commit comments

Comments
 (0)