openroberta-lab
openroberta-lab copied to clipboard
CORS error when trying to upload a program using BobDude
Describe the bug
- i can't upload a program to either Rob3rta or Bob3 using BobDude
- While Rob3rta or Bob3 are open, I get the following CORS error
Access to XMLHttpRequest at 'http://127.0.0.1:8991/listrobots' from origin 'https://lab.open-roberta.org' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
jquery-3.3.1.min.js:2
GET http://127.0.0.1:8991/listrobots net::ERR_FAILED
Additional remarks:
- This error appears only when trying to use chrome on my current machine
- I can't reproduce this using Firefox or chrome on windows and other Linux machines
- This error appears only when using https://lab.open-roberta.org/ or https://test.open-roberta.org/
To Reproduce Steps to reproduce the behavior:
- Install BobDude
- switch robot to Rob3rta or Bob3
- open console
- See error
Expected behavior
- The behavior should be consistent for all browsers and operating systems
Screenshots
-
- How it should look like (except for the URL):
Device information
- OS: Linux 20.04
- Browser Chrome: Version 118.0.5993.88 (Official Build) (64-bit)