Guest User

Untitled

a guest
Nov 15th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. Object {
  2. "config": Object {
  3. "adapter": [Function xhrAdapter],
  4. "baseURL": "http://93ae6a5f.ngrok.io/api/v1",
  5. "data": "{"email":"test@gmail.com","password":"password"}",
  6. "headers": Object {
  7. "Accept": "application/json",
  8. "Content-Type": "application/json",
  9. },
  10. "maxContentLength": -1,
  11. "method": "post",
  12. "timeout": 0,
  13. "transformRequest": Object {
  14. "0": [Function transformRequest],
  15. },
  16. "transformResponse": Object {
  17. "0": [Function transformResponse],
  18. },
  19. "url": "http://93ae6a5f.ngrok.io/api/v1/auth/sign_in",
  20. "validateStatus": [Function validateStatus],
  21. "xsrfCookieName": "XSRF-TOKEN",
  22. "xsrfHeaderName": "X-XSRF-TOKEN",
  23. },
  24. "data": Object {
  25. "data": Object {
  26. "allow_password_change": false,
  27. "email": "test@gmail.com",
  28. "id": 1,
  29. "image": null,
  30. "name": null,
  31. "nickname": null,
  32. "provider": "email",
  33. "uid": "test@gmail.com",
  34. "username": null,
  35. },
  36. },
  37. "duration": 731,
  38. "headers": Object {
  39. "cache-control": "public, max-age=0",
  40. "content-type": "application/json; charset=utf-8",
  41. "etag": "W/"0fa41fc630ddb8ffc9b9f9f9b90849b5"",
  42. "transfer-encoding": "chunked",
  43. "vary": "Origin",
  44. "x-request-id": "320d3bd6-7e94-48b4-8e14-fe434d593b6a",
  45. "x-runtime": "0.303548",
  46. },
  47. "ok": true,
  48. "originalError": null,
  49. "problem": null,
  50. "status": 200,
  51. }
  52.  
  53. config.middleware.use Rack::Cors do
  54. allow do
  55. origins '*'
  56. resource '*',
  57. headers: :any,
  58. expose: ['access-token', 'expiry', 'token-type', 'uid', 'client'],
  59. methods: [:get, :post, :options, :delete, :put]
  60. end
  61. end
Add Comment
Please, Sign In to add comment