Getting the request origin in a Django request
Getting the request origin in a Django request Question: So I’m trying to enable cross origin resource sharing in Django, so I can post to an external site, and it’s easy to do when I set response[“Access-Control-Allow-Origin”]=”*” but I want to instead have it check whether the origin is in an allowed list of origins …