Hi. 

Sorry if this topic has already been talked about before, but I'd like to 
express my support for a stream-lined way of using session authentication 
with React. 

What I mean is, if we want to develop react with *npm start *,and not 
re-compile every minor change made, the code JS will run on a different 
port, and make CORS/CSRF varification incredibly difficult with django. 
Only once the react code is compied will the JS run with django on the same 
port, but re-compiling for every small front-end code change is 
hair-pulling. 

Here is one of the few work-arounds I've found, observe, it involves quite 
a few hoops to jump:
https://medium.com/swlh/django-rest-framework-and-spa-session-authentication-with-docker-and-nginx-aa64871f29cd

So what I want to propose is some kind of streamlined process for React + 
DRF for session authentication. I'm not knowledgeabe enough to suggest what 
that would be, but as is, the solution is almost silly. 

That's all, I mostly just wanted to bring this issue to the attention of 
the community. If it isn't already. 

Thanks! 

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/0724955c-8c1b-44fe-8073-52d574331b6an%40googlegroups.com.

Reply via email to