datafor123 / visualizer-free

0 stars 2 forks source link

JS script error while embedded Datafor dashboard when application and dashboard are placed on different domains #1

Open andreysubbotin opened 4 years ago

andreysubbotin commented 4 years ago

Test case:

GeCherry commented 4 years ago

Hello Andrey, It is because of modern browser'routine operation to prevent CSRF attack . You could use nginx to solve the cross-origin problem.Such as below: listen 80; server_name localhost; location /yourapp/ { proxy_pass https://127.0.0.1:18080/yourapp/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; } location /pentaho/ { proxy_pass http://127.0.0.1:8080/pentaho/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; }