Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add websocket support to export feature on the client side #212

Open
bmblb opened this issue Jan 20, 2020 · 0 comments
Open

Add websocket support to export feature on the client side #212

bmblb opened this issue Jan 20, 2020 · 0 comments

Comments

@bmblb
Copy link

bmblb commented Jan 20, 2020

Currently, when trying to use export server runnin on websocket with default settings, you run into issue, reproducible in chrome:

  1. run export server for websocket: node src/server.js -w 8080
  2. run export demo, try to export
OPTIONS http://localhost:8081/ 404 (Not Found)
Access to fetch at 'http://localhost:8081/' from origin 'http://localhost:8080' has been 
blocked by CORS policy: Response to preflight request doesn't pass access control check: 
It does not have HTTP ok status.
Uncaught (in promise) TypeError: Failed to fetch

websocket requires special handling:

let ws = new WebSocket(url);
ws.onopen = function() { ws.send(request); }
ws.onmessage = function () { ws.close(); }
@bmblb bmblb self-assigned this Jan 20, 2020
@bmblb bmblb removed their assignment Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants