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" error #343

Open
alekdavisintel opened this issue Nov 19, 2024 · 0 comments
Open

"Cookie not in this host's domain" error #343

alekdavisintel opened this issue Nov 19, 2024 · 0 comments

Comments

@alekdavisintel
Copy link

alekdavisintel commented Nov 19, 2024

I am helping a co-worker troubleshoot his API and when making a non-authenticated call, I get this error (with sensitive values redacted):

ERROR {"url":"https://endpoint.company.com/health","protocol":"HTTP","method":"GET","headers":{"Accept":"*/*","User-Agent":"httpyac"},"options":{"cookieJar":{"version":"tough-cookie@5.0.0","storeType":"F7","rejectPublicSuffixes":true,"enableLooseMode":false,"allowSpecialUseDomain":true,"prefixSecurity":"silent","cookies":[]},"hooks":{"beforeRedirect":[null],"beforeRequest":[null]}},"noRejectUnauthorized":true,"proxy":"http://corpproxyserver.com:port"}
---------------------

GET https://endpoint.company.com/health
✖ Cookie not in this host's domain. Cookie:dev-api.azurewebsites.net Request:devapi.company.com (RequestError: Cookie not in this host's domain. Cookie:dev-api.azurewebsites.net Request: devapi.company.com - EP._beforeError (c:\Users\me\.vscode\extensions\anweber.vscode-httpyac-6.16.4\dist\extension.js:133:18474)
RequestError: Cookie not in this host's domain. Cookie:dev-api.azurewebsites.net Request:devapi.company.com
	at EP._beforeError (c:\Users\me\.vscode\extensions\anweber.vscode-httpyac-6.16.4\dist\extension.js:133:18474)
	at EP._onResponseBase (c:\Users\me\.vscode\extensions\anweber.vscode-httpyac-6.16.4\dist\extension.js:133:12741)

I know that something must be broken on the web server's end, but I'm not sure how troubleshoot and get details of the issue. I tried it in Postman and the call completed fine with no errors or warnings (after I turned off cert validation). I checked line 133, pos 18474 of the extension.js file3, but it was not very helpful:

image

Is there some setting that can be used to bypass the issue? If it works in Postman, I'm wondering why would it not in httpYac.

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