Skip to content
This repository was archived by the owner on Apr 17, 2019. It is now read-only.
This repository was archived by the owner on Apr 17, 2019. It is now read-only.

Unauthorized when api.xxx before Auth #170

@jandante

Description

@jandante

Hi,

my setup works thanks to your clean package + readme (thank you for that).

I do have an issue though. When i set my routes i put everything in a route group so I can add the before filter auth. I'm using the basic authentication included in Laravel.

However when I do this it works when calling the page but after some filtering or paginating i suddenly get the datatables ajax error. The console shows me a 401 Unauthorized. I get automatically logged out.
If I keep my main route in the auth group and extract the api route from it, I don't have that error.

Of course that wouldn't be save because my data is then free for everyone.

Is Laravel protecting me here from a lot of ajax calls and automatically logges me out?

Thanks for you help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions