Page MenuHomePhabricator

[hCaptcha] CORS error on jawiki/enwiki Special:CreateAccount (fails to load secure-api.js), but works on mediawikiwiki
Closed, DuplicatePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

CORS error appears in console and hCaptcha does not load:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://assets-hcaptcha.wikimedia.org/captcha/1/73f27c192b38c05ce2ebce596a0e28f88a2a56bf/secure-api.js?endpoint=https%3A%2F%2Fhcaptcha.wikimedia.org&assethost=https%3A%2F%2Fassets-hcaptcha.wikimedia.org&imghost=https%3A%2F%2Fimgs-hcaptcha.wikimedia.org&reportapi=https%3A%2F%2Freport-hcaptcha.wikimedia.org&render=explicit&onload=onHCaptchaSDKLoaded (Reason: CORS header 'Access-Control-Allow-Origin' missing). Status code: 200.

The same error occurs on https://auth.wikimedia.org/enwiki/wiki/Special:CreateAccount

What should have happened instead?:

hCaptcha should load normally, allowing account creation.

Workaround found:

hCaptcha loads correctly when using https://auth.wikimedia.org/mediawikiwiki/w/index.php?title=Special:CreateAccount instead.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

This may indicate a wiki-specific configuration difference...

Related task: T388902 (hCaptcha proxy + CSP), T419265


https://auth.wikimedia.org/jawiki/wiki/%E7%89%B9%E5%88%A5:%E3%82%A2%E3%82%AB%E3%82%A6%E3%83%B3%E3%83%88%E4%BD%9C%E6%88%90

スクリーンショット 2026-04-12 231941.png (1,920×1,032 px, 116 KB)


https://auth.wikimedia.org/enwiki/wiki/Special:CreateAccount

スクリーンショット 2026-04-12 235416.png (1,920×1,032 px, 119 KB)


https://auth.wikimedia.org/mediawikiwiki/w/index.php?title=Special:CreateAccount

スクリーンショット 2026-04-12 231458.png (1,920×1,032 px, 115 KB)


There is no loading of https://assets-hcaptcha.wikimedia.org/* from https://auth.wikimedia.org/mediawikiwiki/w/index.php?title=Special:CreateAccount

Event Timeline

kostajh subscribed.

I am unable to reproduce this, but will track this as a subtask of {T421204} which deals with various WMF network reliability issues as they related to hCaptcha.

kostajh added a parent task: Restricted Task.Apr 12 2026, 5:38 PM
kostajh added a subscriber: ssingh.
kostajh triaged this task as High priority.Apr 12 2026, 5:51 PM
kostajh added a project: Traffic.

hCaptcha loads correctly when using https://auth.wikimedia.org/mediawikiwiki/w/index.php?title=Special:CreateAccount instead.

@TzrZzz hCaptcha isn't currently enabled on mediawiki.org -- are you saying that you saw it enabled there?

sbassett subscribed.

I can't seem to reproduce this issue based upon the steps in the task description.