News for hackers. Stuff that matters.
Re:Django 2.1 released by kennydude on Wednesday August 01, 2018 @12:15PM (#17663887)
The way I've always done it is to not log the user in to a Django session. That way the SPA is the thing which holds the authentication, be it JWT or any other kind of token.

If any other site tries to POST to the API on behalf of the current user they'll get a "Authentication credentials required" message.

There are no comments on this comment yet.