Is there a way to remove a header that’s previously been set in
_headers? I can override a header e.g. with this:
/* X-Frame-Options: DENY /some/path X-Frame-Options: SAMEORIGIN
But I don’t know how to unset the header (there’s no value to this header that means “default please”).
Setting it to nothing (i.e. the following block) didn’t seem to work, it then gets the inherited
DENY (in fact the Netlify build states that it’s an invalid header rule):
/* X-Frame-Options: DENY /some/path X-Frame-Options:
Right now I’m just setting to a value that doesn’t have any meaning (
ALLOW seemed the most appropriate), but I don’t love doing that as it’s still actually setting this header, which then gives an error in the Chrome console (not sure about other browsers right now) which isn’t exactly great.
Is there a way to unset a header that I don’t know of?