Things I have learned about frame security while making a custom Hacker News client

Due to security reasons, we can restrict how our page is rendered in frames. It’s worth knowing how this mechanism works not only to defend our users from threats, but also not to be surprised when we want to create something … unusual.

Why it is sometimes hard to connect to the public Wi-Fi network and what can we do about it?

Sometimes you connect to the Wi-Fi, but no website wants to load. You try to enter different website addresses, but all you get in the result is a blank page. It seems like it’s stuck in some void … and then for some website it miraculously did work and you were redirected to a page with some terms to accept, one click and the Internet is ours.

But why … ? What just happened ?

How to control the bottom status bar in your browser?

Have you ever wondered how does Google shows the link to the found website itself, but when you click the link, you are first redirected to the google.com for statistics collection or whatever Google does and only then you are redirected to the website you wanted to enter ?

Server-Sent Events explained

Server-Sent Events are a great way to solve one particular shortage of HTTP protocol, which is an asynchronous server to client communication.

HTTP itself is a request-response protocol and this is great – until you need to implement notifications, direct messages, or a similar feature. A backend server cannot send a message if the client didn’t ask for it explicitly.

Of course, there are WebSockets, but are we aware of the alternatives? Server-Sent Events is a technology, which allows us to push messages from a server to a browser in an asynchronous way. This is possible only in that direction, but isn’t it exactly what we miss in HTTP?