You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in_http: allow empty Origin header requests to pass CORS checks (#4866)
**Which issue(s) this PR fixes**:
**What this PR does / why we need it**:
Some requests, such as those made by apps, certain automated scripts, or
older browsers, may not include an Origin header. Previously, such
requests were blocked by the CORS check, even though they may not
necessarily be cross-origin.
For CORS, the server is responsible for reporting the allowed origins.
The web browser is responsible for enforcing that requests are only sent
from allowed domains. So this change updates the CORS handling logic to
allow requests with an empty Origin header to pass, ensuring
compatibility with legitimate non-browser clients while maintaining
security.
**Docs Changes**:
fluent/fluentd-docs-gitbook#574
**Release Note**:
The same as the title.
Signed-off-by: Richard Lee <[email protected]>
0 commit comments