Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

124
Views
Get set-cookie value from the response header angular

I am trying to get the set-cookie from Response Headers.

The reason of doing this is set-cookie is not setting cookie and showing the warning This attempt to set a cookie via a Set-Cookie header was blocked because its Domain attribute was invalid with regards to the current host url. Attached is the screenshot

enter image description here

Now I thought to get the set-cookie value from Response Header by the following code enter image description here

But it always returns null for set-cookie but return the value fo expires.

Please anyone can guide how to fix this issue or how can I get the value of set-cookie from Response Header.

Any help will be highly appreciated.

Thanks

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

According to developer.mozilla.org set-cookie is a forbidden response header name. You cannot read it using browser-side JavaScript

Browsers block frontend JavaScript code from accessing the Set Cookie header, as required by the Fetch spec, which defines Set-Cookie as a forbidden response-header name that must be filtered out from any response exposed to frontend code.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!