2 ms·
postMessage is more heavyweight than CORS. Minus a couple of restrictions (i.e. with CORS you cannot rely on cookies being set, so you need to handle that from
by bad_user 15y ago
postMessage is more heavyweight than CORS.
Minus a couple of restrictions (i.e. with CORS you cannot rely on cookies being set, so you need to handle that from your Javascript somehow), CORS works well and it works on all major browsers, starting with IExplorer 8, which makes it awesome.