Skip to content

Commit

Permalink
updated transport to accept CORS requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
kennetpostigo committed Jan 30, 2016
1 parent 60891be commit e6acfc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-reach",
"version": "0.2.0",
"version": "0.2.1",
"description": "A small library for react to communicate with GraphQL",
"main": "dist/index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/utils/transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import fetch from 'isomorphic-fetch';
return new Promise ((resolve, reject) => {
return fetch(path, {
method: 'POST',
mode: 'cors',
headers: {
'Accept': 'application/json',
'content-type': 'application/json'
Expand Down

0 comments on commit e6acfc7

Please sign in to comment.