angularjs - Angular $http changing url on Rails Devise -


this first ever stack overflow question because google sorts me out. can't seem find anything/anyone online replicating issue.

i'm using angular devise module , when attempt login following url

test.aam.tunnel.logicsaas-development.com:3000/users/sign_in.json

$http or devise changes to

http://undefined:undefinedtest.aam.tunnel.logicsaas-development.com:3000/users/sign_in.json

here config code:

authinterceptprovider.interceptauth(true);  authprovider.loginpath('test.aam.tunnel.logicsaas-development.com:3000/users/sign_in.json'); authprovider.loginmethod('post'); authprovider.resourcename('users'); 

and login call:

var credentials = {     email: 'user@domain.com',     password: 'password1' };  auth.login(credentials).then(function(user) {     console.log(user); // => {id: 1, ect: '...'} }, function(error) {     console.log(error)     // authentication failed... }); 

i dug devise , im 99% sure happening $http. @ appreciated

maybe must change host configuration this:

.config(function(authprovider){    authprovider.baseurl("http://test.aam.tunnel.logicsaas-development.com:3000");  })


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -