Skip to content

Commit b11f369

Browse files
committed
Allowed CORS
1 parent 3bf4f00 commit b11f369

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,6 @@ func main() {
6060
http.Handle("/graphiql", graphiqlHandler)
6161
http.ListenAndServe(":4040", nil)
6262
}
63-
```
64-
65-
Remember that if you want to execute the GraphiQL standalone you must need allow the origin on
66-
your http server.
67-
Eg:
68-
```
69-
Access-Control-Allow-Origin: http://localhost:4040
70-
Access-Control-Allow-Credentials: true
71-
```
7263

7364
## Contribute
7465
[Contributions](https://github.com/friendsofgo/graphiql/issues?q=is%3Aissue+is%3Aopen) are more than welcome, if you are interested please fork this repo and send your Pull Request.

template.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ var graphiqlTmpl = `
159159
'Content-Type': 'application/json',
160160
},
161161
body: JSON.stringify(graphQLParams),
162-
credentials: 'include',
163162
}).then(function (response) {
164163
return response.text();
165164
}).then(function (responseBody) {

0 commit comments

Comments
 (0)