Use third-party-cookies.herokuapp.com for cookie check

This commit is contained in:
Piotr Sarnacki 2012-11-18 14:05:55 +01:00
parent 33dced826b
commit 3cb9dd89cd

View File

@ -280,12 +280,12 @@ alert('refusing to send a token to <%= target_origin.inspect %>, not whitelisted
var url = window.location.pathname + '/iframe' + window.location.search;
var img = document.createElement('img');
img.src = "<%= url('/set_cookie') %>";
img.src = "https://third-party-cookies.herokuapp.com/set";
img.onload = function() {
console.log('img onload');
var script = document.createElement('script');
script.src = "<%= url('/check_cookie') %>";
script.src = "https://third-party-cookies.herokuapp.com/check";
window.document.body.appendChild(script);
}