All Questions
931
questions
0
votes
0
answers
11
views
CORS Error Response to preflight request doesn't pass access control check: It does not have HTTP ok status
Hello i've been developing a MERN app, instead of MongoDB is MySQL, so its MySQl ERN app.
My site is a simple blog, post blogs with a name, and the content of the blog.
So i implemented CORS while ...
0
votes
0
answers
18
views
Setting JWT Cookies from Express Backend to Frontend
i am trying to set the cookie using JWT. On localhost everything works like charm. But when i deploy my FE(front-end) and BE(back-end) on render.com. i can login but after that i get the errors ...
-1
votes
0
answers
46
views
CORS undefined problem in Node.js and Plesk
I have problem with CORS in my Node app on Plesk. On example.com/checkout.html is the form with PayPal checkout, after the payment goes through, it sends the form data to example.com/abc (Node - ...
0
votes
0
answers
65
views
ERR_CONNECTION_TIMED_OUT When Making POST Request from React to Azure SQL server
I am encountering an ERR_CONNECTION_TIMED_OUT error when trying to send a POST request from my React application to my SQL Server hosted on Azure. The goal is to add data to an Azure SQL database. And ...
0
votes
1
answer
71
views
Blocked by CORS policy despite domain name present in server side file
I've run into a very bizarre problem that even after hours of troubleshooting this issue persists.
Project Background
First of all, my front end is run on React+Vite (but I didn't really use anything ...
0
votes
0
answers
17
views
cookies are not available in request headers in vercel deployment
I am working on a MERN project. I am trying to implement authentication system. But when running the server in localhost. The cookies are available in request headers but on runnning server on vercel ...
0
votes
1
answer
35
views
"CORS header ‘Access-Control-Allow-Origin’ missing" despite setting cors origin in my server.js
I am working on a project where I have set up a socket.io server.
server.js
const express = require('express');
const app = express();
const http = require('http');
const { Server } = require("...
0
votes
1
answer
149
views
Third-party cookie will be blocked - warning, not able to logout
I want to remove the warning and be able to logout
https://link-bee-roan.vercel.app/ this is the link
I am setting cookies here
res.cookie('token', token, {
secure: true,
sameSite: '...
0
votes
0
answers
22
views
Connecting EmailJS to express server
I am trying to set up an email form using EmailJS. When the user clicks on the submit button, the details within the form will be sent my backend express server. If anyone could point me in the right ...
0
votes
0
answers
43
views
express cors not update origin
I deploy website that both use one domain but backend is sub domian something like api.domain.com when I try to call api from frontend it notice me a simple cors issue or error
Access to ...
0
votes
1
answer
120
views
Error: Access to XMLHttpRequest has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource
I've recently been working on an online invoice generator using the MERN Stack with TypeScript. I have included an option to generate a PDF using the Puppeteer library when a button is clicked. This ...
0
votes
1
answer
25
views
Browser not saving cookie when sending request to authenticate
So I have built an API using express. Now I am creating the frontend using React and Vite.
When my frontend sends a request to the api login route, the response includes the corresponding Set-Cookie ...
2
votes
1
answer
68
views
Why is my JavaScript fetch API call returning a CORS error even though I've set up CORS on the server? [closed]
I'm working on a web application where I need to fetch data from an API hosted on a different domain. I'm using the fetch API in my JavaScript code, but I keep getting a cors error. Here is my client-...
1
vote
0
answers
71
views
CORS Issue with Cloudflare: Empty Response Headers Despite Worker and Rules Setup
I am experiencing persistent CORS issues when trying to access my Express server from a published client using Cloudflare for DNS management. Despite various attempts, the Access-Control-Allow-Origin ...
-2
votes
1
answer
31
views
Cors error, i've tried guys, i'ts been asked so many times but i dont seem to find a solution
Access to XMLHttpRequest at 'http://localhost:5000/user/login' from origin 'http://127.0.0.1:5173' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The ...