Commit 78d9676a authored by Jan Pöppel's avatar Jan Pöppel
Browse files

fixed same origin error

parent bd486672
......@@ -37,6 +37,6 @@ def create_app(test_config=None, debug=True):
from .main import main as main_blueprint
app.register_blueprint(main_blueprint)
socketio.init_app(app)
socketio.init_app(app, cors_allowed_origins="*") #Prevent problems socket.io connecting to the flask server
return app
\ No newline at end of file
......@@ -29,8 +29,8 @@ console.log("store: ", store.getState())
ReactDOM.render(
<Provider store={store}>
{/* <Dashboard /> */}
<Webblocks/>
<Dashboard />
{/* <Webblocks/> */}
</Provider>,
document.getElementById('dashboard')
);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment