-
Reactive UI in 10 lines of code
posted in JavaScript on 2024-02-11 javascript react proxy -
Reactivity became de-factor a standard in the last couple of years. All the major frameworks have some reactivity model implemented. One of the biggest even has the name React. In this article, we'll see how to write a simple reactive UI with just a few lines of JavaScript.
read more
-
The simplest HTTP proxy with custom headers
posted in Nodejs on 2020-05-06 proxy headers authorization node local request server req http basic pass -
These days I had an interesting problem to solve. At work, on our staging environment, we have basic authorization. It works really well but for some older versions of Chrome we experienced a weird issue. The browser did not pass the authorization header. The app runs fine but as soon as it does a fetch request to a local endpoint the request fails with 401 not-authorized error. In the modern browsers that's not happening because the browser kinda knows that we came here with basic auth and automatically includes
read moreauthorization: basic ...
header.