Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interceptor not triggered whan comming from /api/whatever #45

Open
DespertaWeb opened this issue Oct 7, 2016 · 0 comments
Open

Interceptor not triggered whan comming from /api/whatever #45

DespertaWeb opened this issue Oct 7, 2016 · 0 comments

Comments

@DespertaWeb
Copy link

Hi! thanx for the book and the material, it's been really helpfull.
I was just following the ebook and "translating" it into "ui-router way", I think it's far more easier.

Well, the problem is that I created the User CRM and the replicated almost the same for a bikes model. Everything is ok in the public routes, but once I'm under /api route if I navigate trough the buttons is ok. But when I push
app comp.zip
the url from the browser
for example: localhost:8080/api/bikes it responds : "success": false, "message": "No token provided
There's a Token, I checked it out in dev tools and works fine in POSTMAN.

NOTE: My front.routes.js is pointing to the very same url: /api/bikes. If not it allows to enter to the non logged in users.

I guess the problem is that the interceptor it's not being triggered so I doesn't catch the token. And I don't know why is not being triggered and neither how force to do so.

@sevilayha I hope you can help me. I allways follow your posts :)

Please have a look I spent almost a week and couldn't find the way out. :(

I attached here the involved files. Anything you need just let me know.
Thanx again.
app comp.zip

@DespertaWeb DespertaWeb changed the title Interceptor not triggered whan comming from api/whatever Interceptor not triggered whan comming from /api/whatever Oct 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant