amorphitec / opengb

3d printer controller with touchscreen interface and websocket API
http://opengb.readthedocs.org/
Other
12 stars 4 forks source link

added CORS and change some webUI addresses in server #1

Closed yeomps closed 8 years ago

yeomps commented 8 years ago

If the UI is not served from the same server chrome will throw a security exception unless CORS is enabled. This turns CORS on by over-riding check_origin so it always returns True