jupyter / dashboards_server

[RETIRED] Server that runs and renders Jupyter notebooks as interactive dashboards
Other
181 stars 48 forks source link

Error preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource #321

Open zmarozas opened 7 years ago

zmarozas commented 7 years ago

Hello, I am traying to set up interactive dashboard solution which can found here https://github.com/ch41rmn/PyConAU2016_-_Interactive_Data_Displays_With_Jupyter_Notebooks

I am running in corporate environment where they do restrict access to certain websites. Even though I am running all servers : jupyter notebook , gateway and dashboard server on the same machine.

I did set c.NotebookApp.allow_origin = '*' in my jupyter_notebook_config.py file, but this did not help.

Here is a error message: OPTIONS http://10.6.56.121/ 403 (Forbidden) 3_PyCon_dashboard.demo_full:1 XMLHttpRequest cannot load http://10.6.56.121/. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. The response had HTTP status code 403. dashboard.js:108 Error: Failed to create kernel: API request failed (0): at kernel.js:65

I wonder , is there a way to get rid of this error. Regards, Zilvinas