Welcome! Log In Create A New Profile

Advanced

Cannot enable CORS in nginx

Dung Tran Tien
April 29, 2019 03:56AM
Hi everyone,
I'm using nginx 1.10.3 in Ubuntu 16.04. I tried to enable CORS same exactly this configuration https://enable-cors.org/server_nginx.html, but I still got the error:

POST https://abc.com/api/21/job/8c1c66b9-a736-4d28-9868-c3f2c433b0f7/executions 403
(index):1 Access to XMLHttpRequest at 'https:// abc.com/api/21/job/8c1c66b9-a736-4d28-9868-c3f2c433b0f7/executions' from origin 'https://bcd.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.


Please advise me how to fix the issue.
Thanks.

Dung Tran Tien
ICT Specialist
AXON ACTIVE VIETNAM Co. Ltd
www.axonactive.comhttp://www.axonactive.com

T +84.28.7109 1234, F +84.28.629 738 86, M +84 933 893 489

Ho Chi Minh Office:
Hai Au Building, 39B Truong Son, Ward 4, Tan Binh District, Ho Chi Minh City, Vietnam
106?39'51"East / 10?48'32"Northhttp://maps.google.de/maps?q=10.80909,%20106.664329+(Axon%20Active%20Vietnam)&iwloc=A&hl=en

Da Nang Office:
PVcomBank Building, 30/4 Street, Hai Chau District, Da Nang, Vietnam
108?13'15"East / 16?2'27"Northhttp://maps.google.de/maps?q=16.040975,%20108.220597+(Axon%20Active%20Vietnam)&iwloc=A&hl=en

Can Tho Office:
Toyota-NinhKieu Building, 57-59A Cach Mang Thang Tam Street, Can Tho, Vietnam
105?46'34"East / 10?2'57"North https://www.google.com/maps/place/10%C2%B002'57.3%22N+105%C2%B046'34.3%22E/@10.0492503,105.7739993,17z/data=!3m1!4b1!4m5!3m4!1s0x0:0x0!8m2!3d10.049245!4d105.776188

San Francisco Office:
281 Ellis Str, San Francisco, CA 94102, United States
122?24'39"West / 37?47'6"Northhttps://www.google.com/maps/place/37%C2%B047'05.7%22N+122%C2%B024'38.7%22W/@37.784913,-122.410747,17z/data=!3m1!4b1!4m2!3m1!1s0x0:0x0?hl=en-US

Luzern Office:
Schl?ssli Sch?negg, Wilhelmsh?he, Luzern 6003, Switzerland
8?17'52"East / 47?3'1"Northhttps://www.google.de/maps/place/47%C2%B003'01.0%22N+8%C2%B017'52.0%22E/@47.0502778,8.2955891,17z/data=!3m1!4b1!4m2!3m1!1s0x0:0x0?hl=en

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Cannot enable CORS in nginx

Dung Tran Tien April 29, 2019 03:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 275
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready