HTTPS requests to auth server

This commit is contained in:
James Barnsley
2017-04-22 20:39:29 +12:00
parent aa14188c24
commit 7717c95e7b

View File

@ -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
})
}