From 3cb9dd89cdb6445a9c7ddd4a36317678fabafece Mon Sep 17 00:00:00 2001
From: Piotr Sarnacki <drogus@gmail.com>
Date: Sun, 18 Nov 2012 14:05:55 +0100
Subject: [PATCH] Use third-party-cookies.herokuapp.com for cookie check

---
 lib/travis/api/app/endpoint/authorization.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/travis/api/app/endpoint/authorization.rb b/lib/travis/api/app/endpoint/authorization.rb
index f13661a0..8d47f693 100644
--- a/lib/travis/api/app/endpoint/authorization.rb
+++ b/lib/travis/api/app/endpoint/authorization.rb
@@ -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);
   }