keep learning đź“š learning notes and blogs
Mar 16, 2020
Local Storage vs Cookies
One of the popular questions I’ve seen in developer forums is, where do I store the JWT token to manage sessions. There are 2 ways you could store JWT or any other auth tokens, LocalStorage or cookie. Both have their pros & cons but they are vulnerable to XSS attacks.
Mar 10, 2020
Don’t forget content type
Giving back JSON responses from the backends directly to the browser is pretty common and simple. However, there are a few things to keep in mind
Feb 12, 2020
Dealing with Spam Signups
Imagine working on a site like Netflix where you provide free user signup and paid subscriptions. The free signup is there to attract more users to use the product and eventually activate them to paying users. The problem is when some users start automating account creation to use for their own “good”.
Jan 29, 2020
target=“blank” - underrated vulnerability
Target attribute is used to specify where the to open a link. The most common usage of target is target=“_blank“ which tells the browser to open a new window or a new tab.
Blockchain the future of philanthropy
Blockchain has a lot of merits when it comes to Donations and the collection of funds. Using blockchain all the donations received are added as transactions in the chain.