I have copied the XrayImage code from your Pet Clinic app and adapted it for my application. It works perfectly when run locally on my PC using the embedded Tomcat server. However, when I deploy as an UberJar with a frontend of Nginx, the images upload fine but will not display. The Previewer Window says “requests to the server have been blocked by an extension” in Chrome. In Firefox, the window is just empty.
An additional note: I tried starting chrome with --disable-extensions and I manually disabled all extensions. I still get the same error, so I am not sure what “extension” the error message is referring to.
The plot thickens… If I go direct to the UberJar port, it works fine. Since it is not directly a Cuba problem, I will just continue to document here. Of course, feedback is always welcome!
The problem appears to be my Nginx Proxy setup. Here’s what I have - very simple setup:
Note that since this is an internal web site I did not bother setting up SSL. That will be my next plan of attack.
I could always get rid of the proxy, but I will eventually have more than one UberJar application running. I wanted to make the URLs cleaner and not require users to know the port numbers directly.