openHAB Server
Please enter your openHAB network address, username and password!
Your openHAB installation does not allow access from another domain.
If you do not use a reverse proxy:
Please add org.eclipse.smarthome.cors:enable=true
to your services.cfg
file.
If you do use a reverse proxy (openhabian!):
Add the following lines to `/etc/nginx/sites-enabled/openhab`:
server {
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow_Credentials' 'true' always;
add_header 'Access-Control-Allow-Headers' 'Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range' always;
add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH' always;
...
}