non-canonical queries losing auth on redirect to canonical
9 Aug
2022
9 Aug
'22
9:57 p.m.
It is important to query against the canonical "www.peeringdb.com". Python and presumably other libraries will drop the authentication request header on a redirect, as a safety precaution: https://github.com/psf/requests/blob/177dd90f/requests/sessions.py#L284-L296 Unfortunately, when this happens is opaque because PeeringDB will try to satisfy what it thinks is simply an anonymous request. If you have an opinion on whether it makes sense for PeeringDB to stop redirecting API requests, check out: https://github.com/peeringdb/peeringdb/issues/1139 Chris
1575
Age (days ago)
1575
Last active (days ago)
0 comments
1 participants
participants (1)
-
Chris Caputo