From 7717c95e7b3910f21bb30044647b819c854cd8e1 Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Sat, 22 Apr 2017 20:39:29 +1200 Subject: [PATCH] HTTPS requests to auth server --- src/js/components/SpotifyAuthenticationFrame.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/js/components/SpotifyAuthenticationFrame.js b/src/js/components/SpotifyAuthenticationFrame.js index 12ad0941..1a664e96 100755 --- a/src/js/components/SpotifyAuthenticationFrame.js +++ b/src/js/components/SpotifyAuthenticationFrame.js @@ -17,7 +17,7 @@ class SpotifyAuthenticationFrame extends React.Component{ super(props); this.state = { - frameUrl: '//jamesbarnsley.co.nz/auth.php?action=frame', + frameUrl: 'https://jamesbarnsley.co.nz/auth.php?action=frame', authorizing: false } } @@ -32,7 +32,7 @@ class SpotifyAuthenticationFrame extends React.Component{ if(event.data == 'closed'){ self.setState({ - frameUrl: '//jamesbarnsley.co.nz/auth.php?action=frame', + frameUrl: 'https://jamesbarnsley.co.nz/auth.php?action=frame', authorizing: false }) }else if(event.data == 'blocked'){ @@ -48,7 +48,7 @@ class SpotifyAuthenticationFrame extends React.Component{ // and turn off our authorizing switch self.setState({ - frameUrl: '//jamesbarnsley.co.nz/auth.php?action=frame', + frameUrl: 'https://jamesbarnsley.co.nz/auth.php?action=frame', authorizing: false }) } @@ -58,7 +58,7 @@ class SpotifyAuthenticationFrame extends React.Component{ startAuthorization(){ this.setState({ - frameUrl: '//jamesbarnsley.co.nz/auth.php?action=authorize&app='+location.protocol+'//'+window.location.host, + frameUrl: 'https://jamesbarnsley.co.nz/auth.php?action=authorize&app='+location.protocol+'//'+window.location.host, authorizing: true }) }