Getting "Cross-Origin Request Blocked" in OHIF with Orthanc

On the latest builds of OHIF I’m unable to load studies from Orthanc…The browser console shows a bunch of “Cross-Origin Request Blocked” errors(screenshot attached). I’m using the Nginx config suggested in the Orthanc Book here >>> https://book.orthanc-server.com/faq/nginx.html#enabling-cors

80126209-34819c80-85ac-11ea-8680-6cce3966d8c0.png

in your browser: localhost:8099
in your console logs: localhost (which means port 80).
That’s not the same domain → cross origin errors

80126209-34819c80-85ac-11ea-8680-6cce3966d8c0.png

Thank you for your reply. I'm wondering if there nginx config file example for dealing with CORS in the orthanc book needs updating because I have been using that for ages(only change I make to is to change the listening port to 8099) without any issues until the recent OHIF builds.

You suggest that there are changes to be done in the Orthanc Book in the “Enabling CORS” section:
https://book.orthanc-server.com/faq/nginx.html#enabling-cors

If this is the case, please provide a patch for the following source file:
https://hg.orthanc-server.com/orthanc-book/file/tip/Sphinx/source/faq/nginx.rst