3 ms·
CORS is only for http requests. The same origin policy for DOM access allows setting the location.href attribute (getting any attribute is still disallowed). S
by bugmen0t 9y ago
CORS is only for http requests.
The same origin policy for DOM access allows setting the location.href attribute (getting any attribute is still disallowed).
Setting location.href also works with frames in both ways, e.g. frame.location.href as well as parent.locaton.href and top.location.href