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

[BUG]: set-cookie when making requests inside desktop client #4042

Open
socratese opened this issue Jan 12, 2024 · 2 comments
Open

[BUG]: set-cookie when making requests inside desktop client #4042

socratese opened this issue Jan 12, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@socratese
Copy link

Describe the bug
cannot access set-cookie headers when making any requests inside app (GET/POST/PATCH etc)

To Reproduce
Steps to reproduce the behavior: tried within my service file, made a seperate one for testing purposes:

class ServiceMonitor extends ServiceBase {
  @backgroundMethod()
  async test() {
    const result = await axios.post('https://jsonplaceholder.typicode.com/posts', {
      userId: 1,
      title: 'Test Title',
      body: 'Test Body',
    });

    console.log(result.data);
  }
}```


**Expected behavior**
should be able to access set-cookie header from response 



**Desktop (please complete the following information):**
 - OS: macOS
 - Browser [e.g. chrome, safari]
 - Version [all]


**Additional context**
Add any other context about the problem here.
@socratese socratese added the bug Something isn't working label Jan 12, 2024
@ByteZhang1024
Copy link
Contributor

This is the browser's security policy, you can check the httpOnly setting.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie

@socratese
Copy link
Author

yes, I know that. im more looking for the best way to go about making these requests to get the set-cookies inside this app, I'll open a PR once done. what do you suggest?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants