September 2023
Mastering Cross-Origin Communication with Rack CORS in Rails
Web browsers have a set of rules in place to prevent web pages from accessing resources on different origins without permission. This policy, known as the same-origin policy, ensures that a web page can only access resources that have the same origin as the page itself. However, there are scenarios where web applications need to communicate with other origins for legitimate purposes, such as fetching data from an API or loading web fonts. In such cases, cross-origin resource sharing (CORS) comes into play. In this article, we will explore how to implement CORS in a Rails application and understand its significance.
Read MoreFrom Construction to Coding: My Journey to Full Stack Development
As a Civil Engineer, I never thought that my career path would lead me to become a full-stack developer. However, as I delved deeper into the world of coding, I realized that constructing a building is very similar to building a code. The skills that I acquired as a Civil Engineer, such as the ability to keep my foundation strong, make my work aesthetic and arranged, and design my work keeping worst-case scenarios in mind, have helped me tremendously in becoming a better coder.
Read More