Closed (fixed)
Project:
Services
Version:
7.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
29 Jul 2016 at 09:32 UTC
Updated:
25 Aug 2016 at 14:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tyler.frankenstein commentedTry starting out small and doing a GET on ?q=services/session/token to see if you can get a CSRF Token. I like FireFox Poster for this. Then try doing a POST to ?q=drupalgap/system/connect.json and sending along the value of the token with for the required X-CSRF-Token header. What happens then?
Comment #4
igenroot commentedSorry for the late reply due to limited access to server.
For GET on ?q=services/session/token Firefox Poster give output
HYy_oaldH3gOPWyFKgJnKu5J_VCa91l8Jye7tfH_9q0while POST to ?q=drupalgap/system/connect.json response
{"sessid":"okNt9kzVmFXqCJ7b0vjwF5co6b00DM9iTvLTA90Cg2s","session_name":"SESSc4658ad7dd5070665726946730d4a73a","user":{"uid":0,"hostname":"xx.16.124.xX","roles":{"1":"anonymous user"},"cache":0,"timestamp":1470020830},"remote_addr":"xx.16.124.xx","date_formats":{"short":{"Y-m-d H:i":{"type":"short","format":"Y-m-d H:i","locales":[],"locked":"1","is_new":false,"dfid":"1","language":null},"m/d/Y - H:i":{"type":"short","format":"m/d/Y - H:i","locales":["en-us"],"locked":"1","is_new":false,"dfid":"2","language":null},"d/m/Y - H:i":{"type":"short","format":"d/m/Y - H:i","locales":["en-gb","en-hk","en-ie","el-gr","es-es","fr-Comment #5
tyler.frankenstein commentedThat appears to be working fine. Now the question is, what is resource
2? What's the URL that you are trying to hit for that?Comment #6
igenroot commentedActually i wanna check my service endpoint status. I put ?q=drupalgap. From this issue also make my views for Json data document does not work and show ajax error.
This the screenshot for better understanding.
Comment #7
igenroot commentedActually the problem from the mis-configuration of RedHat OS setting. I try re-install fresh RedHat OS and it working perfectly. Since I have found the solution, I'm closing this request. Thanks