Skip to content

HTTPRequest CORS header error on HTML5 #58615

Closed
@lostdisplay

Description

@lostdisplay

Godot version

3.4.3.stable only (3.4.2 works fine)

System information

PopOS 21.10 (Based on Ubuntu 21.10), GLES2 & GLES3, Ryzen 5 5600X, RTX 3060 510.54

Issue description

System information is very likely not relevant. Multiple people (friends and godot discord) tested it on their machines.

On HTML5 (Debug and Export), the HTTPRequest node encounters a CORS request did not succeed or credential is not supported if the CORS header ‘Access-Control-Allow-Origin’ is ‘*’ with seemingly no way around it, very likely caused by #57934. Works perfectly fine on every other export.

I wanted to get a .JSON from my repo ThankYou.json and parse it.

Steps to reproduce

  1. Create HTTPRequest and do the bare minimum setup (request and connect request_completed signal)
  2. Export or debug in HTML5 on any browser
  3. Do a request Example

Minimal reproduction project

minimal_reproduce.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions