NGINX reverse proxy

Hi DF comunity!

We have successfully started the df-docker container and DreamFactory 2.5 works fine as a standalone container. Now we encounter unexpected behavior when we try to serve DreamFactory through our NGINX reverse proxy container.

When clicking a button, this line is added to the NGINX proxy log:
Apr 13 07:02:45 localhost docker[22495]: api.lts.no 192.168.1.105 - - [13/Apr/2017:07:02:45 +0000] “POST /api/v2/user/session HTTP/1.1” 403 374 “https://api.lts.no/dreamfactory/dist/index.html” “Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36”

When clicking a button, these lines are added to the Chromium log:
POST https://api.lts.no/api/v2/user/session 403 (Forbidden)
TypeError: Cannot read property ‘message’ of undefined

Published NGINX config file here:

Should we do something with the NGINX proxy config file?
Any other suggestions for what we could do to make this work?

Hi again!

Found the cause of this issue now. NGINX proxy had no problems.

CORS access was not correctly adjusted. The link bellow has a good guide for setting up CORS.

https://wiki.dreamfactory.com/DreamFactory/Tutorials/Enabling_CORS_access