The has()
method of the Headers
interface returns a boolean stating whether a Headers
object contains a certain header.
For security reasons, some headers can only be controlled by the user agent. These headers include the forbidden header names and forbidden response header names.