libretro / libretro/RetroArch

[Emscripten] CORS violation between buildbot.libretro.com and web.libretro.com

Open
#18,235 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
14.1k
Forks
2.2k
Avg merge
7h 35m
Merged PRs (30d)
51

Description

Is there an existing issue for this?
  • This is a bug in RetroArch frontend
  • I have searched the existing issues
Description

Thanks to the efforts of @JoeOsborn in commit 56014a27d6422bcac5c093531cb61cbad4ab7bea the emscripten build now has basic networking support. While this should (in theory) allow the user to access the online updater functionality, these network requests via XMLHttpRequest are being blocked by CORS between the two libretro.com subdomains.

Screenshot of dev tools output in the browser.

Expected behavior
  1. Navigate to https://web.libretro.com/
  2. Press "Run" button to load RetroArch
  3. Select "Online Updater"
  4. Select "Update Cheats"
  5. No error / cheats.zip is downloaded successfully from the buildbot subdomain.
Steps to reproduce the bug
  1. Navigate to https://web.libretro.com/
  2. Press "Run" button to load RetroArch
  3. Select "Online Updater"
  4. Select "Update Cheats"
  5. Error in browser console showing that the request was blocked due to CORS
Version/Commit

1.21.0

Bisect Results

No response

Present in the nightly version

I don't know

Platform & operating system

Emscripten

Affected Cores

No response

Environment information

No response

Relevant log output

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the request from web.libretro.com and inspect the browser console and response from buildbot.libretro.com. The issue mentions no repository file or test, so first determine whether the required CORS change belongs in RetroArch or on the libretro.com hosting configuration. Done means selecting Online Updater > Update Cheats downloads cheats.zip without a CORS error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, wasm
Domain
networking, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.