drakov
drakov copied to clipboard
Ignore reserved headers in blueprint file
According to W3C, following headers are reserved and can't be explicitly set by JS:
- header name starting with
Proxy-orSec- - Accept-Charset
- Accept-Encoding
- Access-Control-Request-Headers
- Access-Control-Request-Method
- Connection
- Content-Length
- Cookie
- Cookie2
- Date
- DNT
- Expect
- Host
- Keep-Alive
- Origin
- Referer
- TE
- Trailer
- Transfer-Encoding
- Upgrade
- User-Agent
- Via
So if a blueprint spec has mentioned one of the above headers, Drakov should ideally ignore that in it's url matching algorithm.