Origin checking failed with SSL (https)

This one worked perfectly for me. Thanks!!!

Old, but popular thread, so the following might help someone:

I wrote verbose-csrf-middleware · PyPI to help people figure out what’s going on in their particular setup (esp. when reverse proxies are involved)