SPAs Are Dead?
leastprivilege.com
SPAs Are Dead?
1–10 of 118 posts
Re: SPAs Are Dead?
#2Re: SPAs Are Dead?
#3Maybe I'm missing something, but this seems like a very narrow definition of SPA. A SPA can just sit on a different path from the API server and cross-site cookies aren't a problem. For instance, www.example.com/app and www.example.com/api
Re: SPAs Are Dead?
#4Browser storage (sessionStorage, localStorage) is perfectly valid for storing an authentication token.
Re: SPAs Are Dead?
#5Maybe I'm missing something, but this seems like a very narrow definition of SPA. A SPA can just sit on a different path from the API server and cross-site cookies aren't a problem. For instance, www.example.com/app and www.example.com/api
This is how I prefer to do it. No CORS pre-flight requests and messing with CORS settings
I'm curious, are there any SPAs that aren't done this way?
Re: SPAs Are Dead?
#6Re: SPAs Are Dead?
#7Re: SPAs Are Dead?
#8Re: SPAs Are Dead?
#9Re: SPAs Are Dead?
#10Cookies suck. The interface is beyond terrible, they were never scoped properly, and they don't have to be used. Browser storage (sessionStorage, localStorage) is perfectly valid for storing an authentication token.