OpenSprinkler › Forums › OpenSprinkler Mobile and Web App › Trouble hosting UI on local computer › Reply To: Trouble hosting UI on local computer
davethomaspilot
So, for some reason the AddType or AddEncoding doesn’t seem to be working.
I hacked main.js to reference the .js and .css files instead of .gjz and .cgz files. Now, I get much farther before I get a different error:
(
index):1 Access to Font at ‘http://192.168.0.187/css/lato.fnt’ from origin ‘http://192.168.0.187:8080’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://192.168.0.187:8080’ is therefore not allowed access.
14:47:33.001 (index):1 This page includes a password or credit card input in a non-secure context. A warning has been added to the URL bar. For more information, see https://goo.gl/zmWq3m.
I’m thinking the “Header always set …” directive isn’t being recognized either.
Maybe the newer apache release needs the directives to be in a different file than /etc/apache2/apache2.conf?
I’m going to try researching that next.