Quick same origin policy check