<div dir="ltr"><span style="font-size:13.6px">Hi everyone!</span><div style="font-size:13.6px"><br></div><div style="font-size:13.6px">I am having some trouble setting up nginx for file uploading.</div><div style="font-size:13.6px"><br></div><div style="font-size:13.6px">I am using nginx as a proxy in front of my nodejs server (that has hapi as server framework).</div><div style="font-size:13.6px"><br></div><div style="font-size:13.6px">Here is the nginx.conf file's portion for this server: <a href="http://dpaste.com/0VJKE5K" target="_blank">http://dpaste.com/0VJKE5K</a></div><div style="font-size:13.6px"><br></div><div style="font-size:13.6px">The problem is that I get </div><blockquote class="gmail_quote" style="font-size:13.6px;margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="https://test.project.com/" target="_blank">https://test.project.com</a>' is therefore not allowed access.<br></blockquote><div style="font-size:13.6px">immediately after sending the pre-flight request when uploading the file.</div><div style="font-size:13.6px"><br></div><div style="font-size:13.6px">Can anyone please help me?</div><div style="font-size:13.6px">Thanks in advance.  </div></div>