The day I fully understand CORS is the day I die :l