r/programminghorror • • Oct 23 '26

GitHub's HTTP header

Post image

This is the crazy thing I've found after analysis why the CI test fails with "Maximum header size exceeded" today.

964 Upvotes

53 comments sorted by

View all comments

133

u/n9iels Oct 23 '26

Proof that managing CSP headers is an absolute nightmare

-23

u/AyrA_ch Oct 23 '26

They could have gone with *.blob.core.windows.net to massively shorten the header.

69

u/Alikont Oct 23 '26

That's a generic domain for all Azure Blob storage accounts. So I could register my own Storage Account and get the matching url.

29

u/AyrA_ch Oct 23 '26

They also allow raw.githubusercontent.com which serves user defined files, so serving unspecified 3rd party content is not the primary concern here to not use an asterisk.

4

u/Joniator Oct 24 '26

Cant be sure, maybe they only query well known paths, then raw.githubusercontent.com would be fine, some random guys blob who controls that storagr wouldnt.

But thats grasping at straws, i dont think they had concern for anything but that was the fix for some issue they didn't understand enough to come up with a reasonable solution.