Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HttpOnly cookie not shown in cURL command #325

Open
mrkvon opened this issue Oct 4, 2018 · 0 comments
Open

HttpOnly cookie not shown in cURL command #325

mrkvon opened this issue Oct 4, 2018 · 0 comments

Comments

@mrkvon
Copy link

mrkvon commented Oct 4, 2018

Issue

Generated cURL command doesn't include a Cookie header with authentication cookie. Therefore the curl command won't work on protected endpoints as is.

Detail

When I request an authentication cookie from a server via RestClient, it doesn't show a Set-Cookie header in the response headers.
The cookie is set anyways, because the following requests to protected endpoints will pass.
The generated cURL command doesn't include the Cookie header. (i.e. -H 'Cookie:jwt=eyJh...; Path=/; HttpOnly')
Setting the cookie header manually fails with error Request header "Cookie" is blocked by XMLHttpRequest for security reasons.

Expected behavior

The cookie is included as a part of a cURL command. Requests via (cURL command generated by RESTClient) and (RESTClient itself) have consistent responses.

Version of RESTClient

3.0.7

Related issues

#194 #308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant