Accessing set-cookie header from response inside iframe

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?

4 Likes