[$injector:modulerr] Failed to instantiate module satellizer due to:
[$injector:nomod] Module 'satellizer' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
?oauth_verifier=token&oauth_token=token
and then Angular redirects me to my homepage within popup. Why after redirection from Twitter new tokens is not being send to my server ?
code
to my application.
hey all, I am trying to use twitter login for angular 1.x with spring, configs are
$authProvider.withCredentials = false
$authProvider.httpInterceptor = function() {
return false;
}
$authProvider.twitter({
url: 'http://localhost:8080/api/authenticate/twitter',
authorizationEndpoint: 'https://api.twitter.com/oauth/authenticate',
redirectUri: window.location.origin || window.location.protocol + '//' + window.location.host + '/',
oauthType: '1.0',
popupOptions: { width: 495, height: 645 }
});
and im getting some cors problem like
XMLHttpRequest cannot load http://localhost:8080/api/authenticate/twitter. The request was redirected to 'https://api.twitter.com/oauth/authorize?oauth_token=xxxxxxxxx', which is disallowed for cross-origin requests that require preflight.
twitterSignInForm.js:36 User cancelled login or did not fully authorize.