Skip to content

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

@DespertaWeb

Description

@DespertaWeb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions