Pass received Set-Cookie header to each request to private API as 'Cookie' header.
Name | Description |
---|---|
auth[login] | Login |
auth[password] | Password |
auth[cookie_auth] | Cookie Auth |
Version: HTTP/1.0 Accept: application/json Content-Type: application/json Host: example.org Cookie:
POST /api/rest/customer/v1/auth
{"auth":{"login":"login","password":"password","cookie_auth":true}}
X-Frame-Options: SAMEORIGIN X-XSS-Protection: 0 X-Content-Type-Options: nosniff X-Download-Options: noopen X-Permitted-Cross-Domain-Policies: none Referrer-Policy: strict-origin-when-cross-origin Content-Type: application/json Cache-Control: no-cache Set-Cookie: _yeti_customer_v1_session=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEwLCJhdWQiOlsiY3VzdG9tZXItdjEiXSwiZXhwIjoxNzMxNTc4NzY1fQ.j5qiZ9yTOpDUrdN6ACltnwTYoG2CIrXpMTBxt1OxaT0; path=/; expires=Thu, 14 Nov 2024 10:06:05 GMT; HttpOnly; SameSite=Lax X-Request-Id: 263bbb60-b2d0-41e3-9c17-c1038b47df6e X-Runtime: 0.005458 Content-Length: 0
201 Created