Skip to content

Commit a4aa53d

Browse files
committed
cors error
1 parent b585983 commit a4aa53d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

http-backend/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import { prismaClient } from './db';
55

66
const app = express();
77
app.use(express.json())
8-
app.use(cors());
8+
app.use(cors({
9+
origin: '*'
10+
}));
911

1012
app.get('/', (req, res) => {
1113
res.send('Hello from express');

0 commit comments

Comments
 (0)