What is a cookies domain set to when the cookie is set in a cdn (or other) hosted javascript file? -


given 1 website hosting "widget" of website, widget not in iframe js dom manipulation , content fed through jsonp connection. if js file serves widget writes javascript cookie cookie marked domain hosting widget js file or domain widget being displayed on (eg domain hosting html file including widget js file)?

it's domain of user's http request (or html file, in example).

here's why: imagine you’re on http://www.blackhat.com/test.html , include file on page http://www.facebook.com/cookielib.js.

this not give right read or write facebook cookies js file, terrible. user agent considers domain in address bar execution context, , reading , writing of cookies happens on domain.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -