{"action":"opened","issue":{"url":"https://api.github.com/repos/zippyui/react-datagrid/issues/93","labels_url":"https://api.github.com/repos/zippyui/react-datagrid/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/zippyui/react-datagrid/issues/93/comments","events_url":"https://api.github.com/repos/zippyui/react-datagrid/issues/93/events","html_url":"https://github.com/zippyui/react-datagrid/issues/93","id":103453156,"number":93,"title":"Fetch problem","user":{"login":"jesty","id":41215,"avatar_url":"https://avatars.githubusercontent.com/u/41215?v=3","gravatar_id":"","url":"https://api.github.com/users/jesty","html_url":"https://github.com/jesty","followers_url":"https://api.github.com/users/jesty/followers","following_url":"https://api.github.com/users/jesty/following{/other_user}","gists_url":"https://api.github.com/users/jesty/gists{/gist_id}","starred_url":"https://api.github.com/users/jesty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jesty/subscriptions","organizations_url":"https://api.github.com/users/jesty/orgs","repos_url":"https://api.github.com/users/jesty/repos","events_url":"https://api.github.com/users/jesty/events{/privacy}","received_events_url":"https://api.github.com/users/jesty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-27T08:13:50Z","updated_at":"2015-08-27T08:13:50Z","closed_at":null,"body":"Hi,\r\n\r\nwhen I try to call an authenticated service on my server I get this error:\r\n\r\nFetch API cannot load http://localhost:8180/auth/realms/Maintenact/protocol/openid-connect/auth?r…3DP-TECNICI_CAT&state=22%2Fdb852966-9ab8-408e-95ca-4716fed147f2&login=true. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.\r\n\r\nIt seems that the request is not authenticated, because it doesn't pass the cookies in the request:\r\n\r\nWORKING REQUEST:\r\nAccept:application/json, text/javascript, */*; q=0.01\r\nAccept-Encoding:gzip, deflate, sdch\r\nAccept-Language:it,en-US;q=0.8,en;q=0.6\r\nCache-Control:no-cache\r\nConnection:keep-alive\r\nCookie:OAuth_Token_Request_State=8/547baf3a-e0a2-48a1-b806-aaaf4c54a0e1; JSESSIONID=DX2UeepoM7jmVDkVxcA9hQTA-RLgBajpxbWLmbdn.davides-mbp\r\nHost:localhost:8080\r\nPragma:no-cache\r\nReferer:http://localhost:8080/XXX\r\nUser-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36\r\nX-Requested-With:XMLHttpRequest\r\n\r\nREQUEST IN ERROR:\r\nAccept:*/*\r\nAccept-Encoding:gzip, deflate, sdch\r\nAccept-Language:it,en-US;q=0.8,en;q=0.6\r\nCache-Control:no-cache\r\nConnection:keep-alive\r\nHost:localhost:8080\r\nPragma:no-cache\r\nReferer:http://localhost:8080/XXX\r\nUser-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36\r\n\r\nNow to solve the issue I have defined a ds function:\r\n\r\nds: function(query){\r\n//...\r\n return fetch(myUrl, {\r\n            credentials: 'same-origin'\r\n        });\r\n}\r\n\r\nAnd this works for me.\r\n\r\nThanks in advance.\r\nDavide\r\n"}}