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

Cookie not in this host's domain #470

Closed
Krytical13 opened this issue Jan 9, 2020 · 2 comments
Closed

Cookie not in this host's domain #470

Krytical13 opened this issue Jan 9, 2020 · 2 comments

Comments

@Krytical13
Copy link

  • VSCode Version: 1.41.1 (user setup)
  • OS Version: Windows 10 1809 17763.914
  • REST Client Version: 0.23.0

Steps to Reproduce:

  1. Note that I am a seasoned sysadmin, but pretty new to REST/JSON and API's.

  2. Attempt to use Cloudflare API within REST Client like the following sanitized example:

get https://api.cloudflare.com/client/v4/zones/*zoneIDhere*
content-type: application/json

{
    "Authorization": "Bearer:  *tokenHere*",
    "X-Auth-Email": "*emailHere*"
}
  1. See resulting error

Cookie not in this host's domain. Cookie:dash.cloudflare.com Request:api.cloudflare.com

Question:
Do I understand correctly,
Set-Cookie could be a requirement for any Rest Client in this situation?

@Huachao
Copy link
Owner

Huachao commented Jan 10, 2020

@Krytical13 the root cause is that the received Set-Cookie header contains a cookie whose domain is dash.cloudflare.com which mismatches the request's target domain api.cloudflare.com. I will update my code to eliminate such error.

@Huachao
Copy link
Owner

Huachao commented Jan 21, 2020

@Krytical13 I have published the latest version 0.23.1 and you can verify it.

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

2 participants