Node.js / Express server: Fix OPTIONS request (Cors)

Đã Hủy Đã đăng vào 6 năm trước Thanh toán khi bàn giao
Đã Hủy Thanh toán khi bàn giao

A request that work in local (POST), dont work in Node.js server (OPTIONS). Seems a cors problem.

::ffff:[login to view URL] - - [10/Sep/2017:19:10:35 +0000] "OPTIONS /api/postals HTTP/1.1" 204 -

::ffff:[login to view URL] - - [10/Sep/2017:19:10:35 +0000] "POST /api/postals HTTP/1.1" 302 28

This fix should be fast and easy with the required knowledge.

Already added but dont know how to configure:

var cors = require('cors');

...

[login to view URL](cors());

Thanks,

AngularJS Express JS Node.js

ID dự án: #15140359

Về dự án

17 đề xuất Dự án từ xa 6 năm trước đang mở

Được trao cho:

HealthyCoder

Dear Sir, We are a group of expert MEAN stack developers who follow the best industry standards and processes to carry out the projects. Please visit our official website: [login to view URL] Relevant Skills Thêm

€23 EUR trong 1 ngày
(30 Đánh Giá)
5.2

17 freelancer chào giá trung bình€33 cho công việc này

arifjaunpur

Hello, I have experience to solve CORS issue in NodeJS & AngularJS based web application. I can help you in this issue Relevant Skills and Experience I have experience in NodeJS, ExpressJS, MongoDB, MySQL, PostgreSQL Thêm

€50 EUR trong 1 ngày
(125 Nhận xét)
6.9
fullstackpratim

Dear Employer, Hi, my name is Parth,I am a Software Developer specializes in creating beautiful web sites and mobile app.I have completed countless MEAN stack projects so far Relevant Skills and Experience We are an e Thêm

€55 EUR trong 1 ngày
(24 Nhận xét)
5.8
OrangeTechsol

Hello sir how are you?? i have 3+ years of experience in MEAN Stack Development . i have your requirement and its seems i can do this job. Relevant Skills and Experience please Let me know your Best time to more di Thêm

€50 EUR trong 1 ngày
(34 Nhận xét)
5.8
laxaar

Hello, Thank you very much for sharing your requirement. I have read the brief project description and I would like to be invited for further discussion to proceed. Relevant Skills and Experience We are a team of 8 y Thêm

€100 EUR trong 1 ngày
(17 Nhận xét)
5.8
SublimeDSystems

Run node.js script independently, read JSON, create png and save it. I have created 3 scalable applications using Node.js using Express, Loopback. One of the app is being used by 100K+ users. Relevant Skills and Exper Thêm

€23 EUR trong 1 ngày
(2 Nhận xét)
2.3
AMDigitalS

A proposal has not yet been provided

€30 EUR trong 3 ngày
(2 Nhận xét)
0.8
hoangdv

I know exactly your problem, I think it is not cors origin issue. Relevant Skills and Experience You can online chat with me to talk about your issue. After that you can select me for this job or not. I have many expe Thêm

€24 EUR trong 1 ngày
(1 Nhận xét)
0.8
manvendra2215

i can do it Relevant Skills and Experience NodeJS developer Proposed Milestones €23 EUR - all done discuss

€23 EUR trong 1 ngày
(0 Nhận xét)
0.0
nhamid6

I may be able to help you. I have over 7 years of experience with API. I have included an estimate for your project if you are interested or need more info please get in touch with me. Relevant Skills and Experience - Thêm

€23 EUR trong 1 ngày
(0 Nhận xét)
0.0
vexile

A proposal has not yet been provided

€20 EUR trong 1 ngày
(0 Nhận xét)
0.0