Created
May 24, 2019 21:41
-
-
Save Franckapik/5304ac81f533eb8891e60680041e7b12 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
connection | |
close | |
content-length | |
2 | |
content-type | |
application/json; charset=utf-8 | |
date | |
Fri, 24 May 2019 21:36:43 GMT | |
etag | |
W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8" | |
set-cookie | |
connect.sid=s%3AwJKAosColy_lkQ…y 2019 22:06:43 GMT; HttpOnly | |
Vary | |
Accept-Encoding | |
x-powered-by | |
Express | |
Request headers (350 B) | |
Accept | |
*/* | |
Accept-Encoding | |
gzip, deflate | |
Accept-Language | |
fr,en;q=0.5 | |
Connection | |
keep-alive | |
Host | |
localhost:3000 | |
origin | |
http://localhost:3000 | |
Referer | |
http://localhost:3000/commande | |
User-Agent | |
Mozilla/5.0 (X11; Linux x86_64…) Gecko/20100101 Firefox/60.0 |
response
HTTP/1.1 500 Internal Server Error
x-powered-by: Express
content-type: application/json; charset=utf-8
content-length: 2
etag: W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"
set-cookie: connect.sid=s%3AwJKAosColy_lkQx45VDshyhamqKIrQ7O.KLHOJljvUemILB3U7MzNcnH7qU0a9zvzbyhHQXUO290; Path=/; Expires=Fri, 24 May 2019 22:06:43 GMT; HttpOnly
date: Fri, 24 May 2019 21:36:43 GMT
connection: close
Vary: Accept-Encoding
return this.instance.requestPaymentMethod()
.then(({nonce}) => fetch(`/paiement/nonce/${nonce}`), {
method: 'GET',
credentials: 'include',
})
.then(resp => resp.json())
.then(res => {
console.log(res);
});
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
request
Host: localhost:3000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
Accept: /
Accept-Language: fr,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://localhost:3000/commande
origin: http://localhost:3000
Connection: keep-alive