A
A
Alexander Knyazev2017-05-12 10:08:33
Computer networks
Alexander Knyazev, 2017-05-12 10:08:33

In the header object of an HTTP header, can there be only regulated properties?

In the code I'm parsing, this is the construction of the http request header:

headers: {
                'Content-Type': 'application/json',
                'x-access-token': token
            }

The x-access-token property is not in the lists of http headers I found on various sites. Or can I pass whatever properties I want in the header?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2017-05-12
@alexandrknyazev13071995

headers starting with X are custom.
https://en.wikipedia.org/wiki/List_of_HTTP_header_...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question