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.eyJzdWIiOjEwLCJhdWQiOlsiY3VzdG9tZXItdjEiXSwiZXhwIjoxNzIxMjM2MzI0fQ.gdNwdp0qvmWalmdgYeEXGq6MJNYJD8fysCqvc16M3Zc; path=/; expires=Wed, 17 Jul 2024 17:12:04 GMT; HttpOnly; SameSite=Lax X-Request-Id: 6c3c775e-bc1e-4984-810a-a253fd85c06d X-Runtime: 0.005682 Content-Length: 0
201 Created