re: Implementing Simple SPA Routing Using Vanilla JavaScript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hey Praveen. Nice write up. Just a couple of things. Setting content with innerHTML makes your implementation open to XSS attacks if you plan to ...
 

Hi Sadick,

Thanks for your feedback. 🙂
For your first point, I just want to say that this article is just for demonstration purpose.
Else, I consider your other points and will consider them in my future articles.

 

May what can help is If you are aware there is a security risk in your implementation, you should mention it in the article just to let whoever is reading know about it. I raised it because it wasn't mentioned in the article.

I'll edit this article as soon as possible.

Thanks, Sadick for your feedback. 🙂

code of conduct - report abuse