Skip to content

Commit 6f2ff05

Browse files
committed
add correct Accept header to graphql CORS example
by default the browser sends */* which hits the error pages, may disable these by default in the future though since I dont think anyone uses Accept these days haha
1 parent b3339a6 commit 6f2ff05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oss/node-graphql/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const body = JSON.stringify({
3535
})
3636

3737
const res = await fetch('http://localhost:3000', {
38-
headers: { 'Content-Type': 'application/json' },
38+
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
3939
method: 'POST',
4040
body
4141
})

0 commit comments

Comments
 (0)