I’ve set up an Armadietto server with this config file:
{
"allow_signup": false,
"storage_path": "/usr/share/armadietto",
"cache_views": true,
"http": {
"host": "127.0.0.1",
"port": 8000
},
"https": {
"enable": true,
"force": false
},
"basePath": ""
}
Apache is acting as a reverse proxy. The configuration is:
ProxyPass "/" "http://127.0.0.1:8000/"
ProxyPassReverse "/" "http://127.0.0.1:8000/"
I’m able to surf to the Armadietto server and create an account (while allow_signup was temporarily set true), and from my webapp I can use the RemoteStorage widget to connect to my account on the server. Initially this works, but after a few seconds I start getting a CORS error for every sync:
policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.