Skip to content

Commit c091299

Browse files
committed
allowed all origins
1 parent fea2a94 commit c091299

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apollo-server.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ const resolvers = {
6969

7070

7171
const app = express();
72-
app.use(cors());
72+
app.use(cors({
73+
origin: '*',
74+
}));
7375

7476

7577
const startApolloServer = async () => {

0 commit comments

Comments
 (0)