Closed

Nginx server issues

I have an Nginx server running nodejs that serves the api to a couple of my projects. Everything works fine in localhost dev mode, but when i deploy the server, the api is only accessible through postman simulated requests. The error says: rent:1 Failed to load [url removed, login to view]: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed. Origin 'http://localhost:3001' is therefore not allowed access.

This looks like a client side issue, but I can't figure out how to solve it.

The client side is a React.js project. So preferably someone knows react,

Skills: AJAX, Javascript, Nginx, node.js, React.js

See more: nginx try_files 404, nginx try_files proxy_pass, nginx nested location, nginx location alias, nginx location root, nginx if not, nginx location examples, nginx try_files, magento dedicated nginx server, magento nginx server configuration speed, nginx server control panel, nginx server web control panel, wowza media server issues, sql server large table running total, service ceo sql server issues

About the Employer:
( 3 reviews ) fresh meadows, United States

Project ID: #16174576

21 freelancers are bidding on average $31 for this job

arifjaunpur

Hello, You are facing CORS issue and this issue can be fixed from server side either via Nginx configuration or in NodeJS application. I did the similar task I mean I fixed CORS issue. I am Sr. full stack develop More

$50 USD in 1 day
(91 Reviews)
6.5
usamae

Hello there. I have checked the error message. This is not a client side error but is coming from the server side. The headers are incorrect and that is why security restrictions apply and your request dont work.

$55 USD in 1 day
(46 Reviews)
5.3
hexiaoyun

Hi How are you? I read your project carefully and i am interesting in your project. I can do your project perfectly. If you give me message , we can discuss more about your project. Thanks so much . i will wait for More

$55 USD in 1 day
(8 Reviews)
3.8
kuldeepvk

Hi, I will check the issue and if this is from server end and nginx issue then i will fix it and make sure it will work properly. thank you

$30 USD in 1 day
(11 Reviews)
3.9
goldsquare

Proficient in React native , Reactjs Ionic Framework , MeteorJS and creating hybrid applications. Excellent knowledge of implementing API's and jSON data. Also well in AngularJs, MongoDB, NodeJs.

$35 USD in 1 day
(11 Reviews)
4.1
piyushccet

Hello there, We're a team of developers working on Angular, React & Node JS with Laravel since last 4+ years. Let us take a look at what issue you're having on your React Node app on Nginx server.

$30 USD in 1 day
(5 Reviews)
3.4
rightbigboss

Hello. This error could be related to client side or server side. You can fix it via analyze request header and change header on your backend. Please refer following: if [login to view URL] == 'OPTIONS': he More

$25 USD in 1 day
(6 Reviews)
3.6
raviprasad143

Hi I'm Raviprasad, Cloud Systems Administrator from India. I have 5+ years of hands on experience in Amazon Web Services, Google Cloud and Digital Ocean platforms. Currently I'm maintaining 35+ web servers in the AWS More

$25 USD in 1 day
(4 Reviews)
3.7
$25 USD in 1 day
(6 Reviews)
2.8
jgamio

Morning Are you doing the request from javascript framework like angular ? You need add to your app the origin module to allow request from others sites Regards

$20 USD in 1 day
(4 Reviews)
2.0
ouarkaayoub

Hi, I am interested to work on this project, I understand the issue, I can fix, it s from node side; I would like to discuss with you more details, please come on chat for more info; Contact me; Thanks

$25 USD in 3 days
(6 Reviews)
2.2
emiliobool

Hi friend, that's not a client side issue but CORS server side issue with your node setup, please accept my bid or message me for more details

$30 USD in 1 day
(4 Reviews)
2.0
toshazed

Hi The problem you are having are on your app deployed on your server/vps over nginx. I am Ring. I am about 17+ years experienced in GNU/Linux based system, server installation and customization, develop, deploy, se More

$50 USD in 1 day
(1 Review)
1.8
ashishpatel1992

Hello, Kindly share the login details to access code at server. also provide access to react app so that I can simulate the issue.

$35 USD in 1 day
(2 Reviews)
2.0
chiragdosi

Dear Project Owner, I am Red Hat Certified Linux Engineer having 5+ year of experience in Managing Core Server | Dedicated Server | VPS Server | Server Security | Server Optimization | Backup and Restoration process More

$25 USD in 1 day
(2 Reviews)
1.7
$25 USD in 1 day
(0 Reviews)
0.0
shitalsurya

I am possessing expertise in React JS. I have good knowledge in API. I have solved this kind of issue in my past experience.

$25 USD in 1 day
(0 Reviews)
0.0
KennethRoryDunn

I will have the error resolved in very little time. I deal with similar issues on a daily basis and know how to resolve your specific error. P.S. I am trying to earn a reputation on Freelancer, hence my low bid.

$10 USD in 1 day
(0 Reviews)
0.0
pyvkd

Hi, Most probably your problem is with setting up the header 'Access-Control-Allow-Origin' with wildcard '*' twice. It happens when your backend as well as nginx config are setting the same header with wildca More

$30 USD in 1 day
(0 Reviews)
0.0
Mexi2705

A proposal has not yet been provided

$30 USD in 3 days
(0 Reviews)
0.0