I’m wondering if the
Basic-Auth “pseudo-header” that can be set via a
_headers override file can contain spaces. I have a number of users who prefer usernames and passwords that contain spaces, but I haven’t been able to provide these in the
_headers override file without running into syntax errors during a Netlify build.
_headers file that doesn’t work:
/* Basic-Auth: my username:my pass with spaces
If I collapse the username and password to not include any spaces, the
_headers file works just fine:
/* Basic-Auth: myusername:mypasswithspaces
I have tried quoting this pair in various ways, but haven’t been able to get things working.
Thanks for the help!
Aaron @ FINE