How to set up nginx for file uploading

Vlad Fulgeanu full.vladd at
Fri Dec 11 12:14:17 UTC 2015

Hi everyone!

I am having some trouble setting up nginx for file uploading.

I am using nginx as a proxy in front of my nodejs server (that has hapi as
server framework).

Here is the nginx.conf file's portion for this server:

The problem is that I get

> No 'Access-Control-Allow-Origin' header is present on the requested
> resource. Origin '' is therefore not allowed
> access.
immediately after sending the pre-flight request when uploading the file.

Can anyone please help me?
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list