Skip to content

Instantly share code, notes, and snippets.

View LanZeroth's full-sized avatar
🏴
Security is an Illusion

Abdullah Abdulwaheed LanZeroth

🏴
Security is an Illusion
View GitHub Profile
@LanZeroth
LanZeroth / null-origin-exp.md
Last active January 14, 2025 09:46
Explanation of null Origin Header in Various Situations

The Origin header in HTTP requests indicates the origin (protocol, host, and port) of the initiating request. However, there are certain situations where the value of this header is set to null. Here's an explanation of the scenarios:

  1. Cross-Origin Redirects

    When a request follows a redirect from a cross-origin domain, the browser may not have a clear origin to attach to the subsequent request. Example: Request is initiated from https://site-a.com and redirects to https://site-b.com. In some cases, after the redirection, the Origin header is set to null to indicate that the origin information is not forwarded.