Hi,
After a bunch of experimentation I had to revert to the urlfetch handler ( <url-stream-handler>urlfetch</url-stream-handler>) because calling our backends failed with a 302 redirect error. With the urlfetch handler, it works.
This seems wrong. Please tell me how I should properly design this.
Current design (has been working for years):
Frontend module gets https request forwards it to a backend module using UrlConnection and the doNotFollowRedirects=false.
Backend module is marked in web.xml CONFIDENTIAL and locked to admin role. Also, it checks the header for X-Google-Inbound-Appid to match our project.
After upgrading, it stopped working and the backend module sends a 302 redirect.
If I add the <url-stream-handler>urlfetch</url-stream-handler> to the frontend appengine-web.xml then it works again.
It looks like the native httpconnection in java 8 does not send the X-Google-Inbound-Appid header either.
Overall, how should one properly configure a backend module in the Java 8 environment to receive frontend connections yet keep it inaccessible from external queries?
Thanks for any help.
Bob