Revert "[mod] try to avoid CSP issue"

This reverts commit d239123f19.
This commit is contained in:
Laurent Peuch 2018-08-27 01:30:36 +02:00
parent d239123f19
commit 40d135bbd8
2 changed files with 2 additions and 2 deletions

2
run.py
View file

@ -283,7 +283,7 @@ async def index_ws(request, websocket):
await websocket.recv()
@app.websocket('/job/<job_id>-ws')
@app.websocket('/job-<job_id>-ws')
async def job_ws(request, websocket, job_id):
job = Job.select().where(Job.id == job_id)

View file

@ -50,7 +50,7 @@
}
})
ws = new WebSocket(websocketPrefix() + '://' + document.domain + ':' + location.port + websocketRelativePath('<{ path }>') + '/job/<{ job.id }>-ws');
ws = new WebSocket(websocketPrefix() + '://' + document.domain + ':' + location.port + websocketRelativePath('<{ path }>') + '/job-<{ job.id }>-ws');
ws.onmessage = function (event) {
var message = JSON.parse(event.data);