Some users reported that certin subset of videos from Bilibili was unable to be loaded in Moegirlpedia. Further investigation indicates API responses of these videos do not properly include CORS header.
Service's upsteram CDN vendor Akamai Technologies caches video queries for performance. However, HTTP header variation is not properly handled. For instance, if a bot sends query request to Akamai Edge without header Origin
, Akamai Edge sends back backend response without Access-Control-Allow-Origin
and caches it. Further requests to this video (in one day) will have the same response sent back.
A patch has been developed to address this issue. It has been applied to all backend servers.