Posts

Safari Cookies Not Working with Express.js App

  Problem The app worked fine in Chrome/Firefox/Edge , but in Safari : Cookies were not being set properly. As a result, protected routes could not be accessed. Setup: Frontend: Vercel ( https://mahisterpieces.in ) Backend: Railway ( https://mahisterpieces-production.up.railway.app ) Root Cause Safari enforces stricter cookie rules due to Intelligent Tracking Prevention (ITP) : Cookies set across different domains are treated as third-party cookies → blocked in Safari. Our frontend and backend were on different domains ( mahisterpieces.in vs railway.app ). Cookies with SameSite=None also require Secure and HTTPS. Thus, Safari dropped the backend cookies. Solution 1. Custom Subdomain for Backend Created a subdomain: api.mahisterpieces.in Added a CNAME record in Vercel DNS pointing api → m9q66juq.up.railway.app (Railway’s verification target). Verified the domain in Railway → Domains , which issued an SSL cert. Now both...

Oasis Infobyte Virtual Internship

OIBSIP Experience of My Internship Journey with Oasis Infobyte My internship journey with Oasis Infobyte was an enriching and transformative experience. As a web development and designing intern, I had the opportunity to work on real-world projects, gain valuable practical skills, and learn from experienced colleagues. One of the most rewarding aspects of my internship was the opportunity to work on a variety of projects, including a landing page, portfolio website, and temperature converter. These projects allowed me to apply my skills and knowledge to solve real-world problems, and to learn new technologies and techniques. In addition to hands-on experience, I also benefited from the guidance and support of my mentors at Oasis Infobyte. They were always willing to answer my questions, provide feedback, and help me to learn and grow. I am grateful to Oasis Infobyte for providing me with this incredible opportunity to learn and grow. The skills and knowledge I gained during my internsh...

Coding vs Development Explained

Image
  What is Coding Explained: The process of writing software using a programming language is known as coding, sometimes known as computer programming. It entails creating, testing, and maintaining software application source code. Creating a set of instructions that a computer can comprehend and carry out is the process of coding. To write code that satisfies the precise specifications of a software programme, you need logic, creativity, and ability to solve problems. Programmers create code for a wide range of platforms and devices, including computers, mobile phones, and websites, using a variety of programming languages, including Python, Java, C++, and many others. In conclusion, coding is the cornerstone of software development and is essential to the production of the software programmes that we depend on every day. That needs to be combined. What is Development Explained: The process of generating, designing, implementing, testing, and maintaining software applications is ref...

Armstrong Number In C

What is Armstrong Number ? An Armstrong number is a number that is the sum of its own digits each raised to the power of the number of digits. EX : 1. 153 is an Armstrong number.  --> 1³ + 5³ + 3³ = 153 2. 371 is an Armstrong number  --> 3³ + 7³ + 1³ = 371 3. 1634 is an Armstrong number --> 1⁴ + 6⁴ + 3⁴ + 4⁴ = 1634 //Code for Armstrong Number In C: #include<stdio.h> #include<math.h> int main() {  int n,no,c=0,s=0,d;  printf("enter no\n");  scanf("%d", &n);  no=n;  while(n>0){   n=n/10;   c++;  }  n=no;  while(n>0)  {   d=n%10;   s=s+pow(d,c);   n=n/10;  }  if(no==s)  {   printf("Armstrong No");  }  else  {   printf("Not Armstrong");  } }

What Is Trading? Beginners Guide.

Image
What is Trading? Trade is a primary economic concept which involves buying and selling of commodities and services, along with a compensation paid by a buyer to a seller. In another case, trading can be an exchange of commodities/services between parties, mostly in return of money. Trade can occur between producers and consumers within an economy. What are the advantages of Trading? Traders can work for financial institutions, in which case they will trade via the funds and credits of a company, and they are paid a combination of bonus and salary. As another option, traders can work for themselves too, as in they can trade with their own money and credit. However, with this option they will also keep all of the profit to themselves. How does trading work? When you trade, you profit if the market price of your position moves in the right direction, and you lose money if the price of your position moves in the wrong direction. It can be risky to dive in without the proper knowledge The b...