Skip to main content
Question

Accessing set-cookie header from response inside iframe

  • October 29, 2021
  • 0 replies
  • 1201 views

WATCHA

I’m making a internal plugin which requests server real data and renders UI with server’s response.

In order to do this. I need to get cookie data from sign in api, and use that cookie data with data api request

but when I use axios, It seems I can’t access set-cookie header in sign in response.(in network panel, server gives set-cookie header)

stack overflow tells setting withCredential request option to true will solve the problem.
but when I tried this, axios throws error saying iframe document doesn’t have cookie property.

have any ideas to solve this problem?

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings