Reliving from CORS nightmare in SPA applications

CORS When you work whit services on a different domain, the horror and pain from fighting with CORS are unavoidable. Exactly, was unavoidable, before I discover how to prevent browsers to send “silly” preflight OPTIONS request. I was desperately trying everything, middleware, proxying requests, and accepting and dropping  OPTIONS requests on the server side. But when you don’t have control on the server side, […]

Vue.js, make ajax requests with Axios

Quite a few frameworks have built-in HTTP APIs. Angular 2 has the http module, JQuery has $.ajax, and, up until Vue 2.0, Vue.js had vue-resource. In Vue 2.0, the developers decided that having a built-in http client module was rather redundant, and could be better serviced by third-party libraries. The alternative most frequently recommended is Axios. Axios is a great http client library. It uses promises by default and runs on both the client […]

Adding an existing project to GitHub using the command line

My way of adding project to GitHub This is my shortest possible explanation, I am glad if someone finds this post useful. This is for Linux users. For Win and Mac user you can find instructions here, on the original GitHub documentation. Create a new repository on GitHub. To avoid errors, do not initialize the new repository with README, license, or gitignore files. You can add these […]