Closed tillkruss closed 5 years ago
Yeah the idea is that it uses the same middleware so it's only visible when Telescope is. Not sure what is best, separate middleware or check if the assets are loaded to prevent errors? Should Toolbar render when not logged in?
Perhaps the assets could render always, and the Ajax request we can catch the 401 error and show a message. And possibly make the middleware configurable.
Does https://github.com/fruitcake/laravel-telescope-toolbar/pull/15 work for you?
Yes, that’s great. Even tho assets don’t need a middleware at all IMO.
Okay tagged it
Fantastic, thanks!
All toolbar routes currently use the
telescope
middleware stack, which might include theauth
middleware.This causes errors in Safari if the user isn't logged in: