I have a form, which I submit like so:
form.addEventListener("iron-form-response", function(event) {
//How can I access response headers here?
});
form.submit();
I know the way I can access response body:
event.detail.response
But what I want is server response headers. I need it, because this response may contain in headers some tokens, which I must store in cookies.