3 ms·
GitHub returns 404 instead of 403 to prevent these information leaks.
by nitrogen 11y ago
GitHub returns 404 instead of 403 to prevent these information leaks.
- dragonwriter 11y ago> GitHub returns 404 instead of 403 to prevent these information leaks. This behavior is explicitly permitted by the standard, FWIW: An origin server that wishes to "hide" the current existence of a forbidden target resource MAY instead respond with a status code of 404 (Not Found). https://tools.ietf.org/html/rfc7231#section-6.5.3 https://tools.ietf.org/html/rfc7231#section-6.5.3