openroberta-lab icon indicating copy to clipboard operation
openroberta-lab copied to clipboard

CORS error when trying to upload a program using BobDude

Open heini208 opened this issue 1 year ago • 0 comments

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:

  1. Install BobDude
  2. switch robot to Rob3rta or Bob3
  3. open console
  4. See error

Expected behavior

  • The behavior should be consistent for all browsers and operating systems

Screenshots

  • image
  • How it should look like (except for the URL):

image

Device information

  • OS: Linux 20.04
  • Browser Chrome: Version 118.0.5993.88 (Official Build) (64-bit)

heini208 avatar Oct 27 '23 10:10 heini208