L
L
LB7772015-04-23 12:04:16
JavaScript
LB777, 2015-04-23 12:04:16

How to work with headers in cross-domain requests?

Server on .net with webApi
I make a request via XMLHttpRequest
The article states that a cross-domain request in XMLHttpRequest can only accept simple headers, and the rest must be explicitly specified.
It turns out that with a normal request, I get all the headers, but in a cross-domain one, only simple ones.
How to specify permissions for these headers?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LB777, 2015-04-23
@LB777

Helped Access-Control-Expose-Headers
Ie . registered on the server
And everything worked

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question