Skip to content

Comments

Fix reCAPTCHA loading and add Yandex Cloud support#25

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/update-recaptcha-functionality
Draft

Fix reCAPTCHA loading and add Yandex Cloud support#25
Copilot wants to merge 2 commits intomainfrom
copilot/update-recaptcha-functionality

Conversation

Copy link
Contributor

Copilot AI commented Nov 17, 2025

reCAPTCHA was failing to load due to incomplete domain coverage and missing iframe/cookie configurations. Added Yandex Cloud deployment support and Yandex SmartCaptcha integration.

CAPTCHA Domain Coverage

  • Added missing reCAPTCHA domains: www.gstatic.com/recaptcha, recaptcha.net/*, generic google.com and gstatic.com
  • Added hCaptcha domains: js.hcaptcha.com, newassets.hcaptcha.com
  • Added Yandex SmartCaptcha domains: smartcaptcha.yandexcloud.net, yandex.com/showcaptcha, yastatic.net/s3/captcha-frontend
  • Synchronized domain lists across client (captcha-handler.ts) and service worker (sw.js)

CAPTCHA Functionality Improvements

  • Added allow-popups sandbox permission and strict-origin-when-cross-origin referrer policy to CAPTCHA iframes
  • Enhanced cookie handling to detect and properly configure cookies for all CAPTCHA providers (reCAPTCHA, hCaptcha, Cloudflare, Yandex)
  • Initialized window.smartCaptcha global object for Yandex SmartCaptcha API
// Before: Limited domain coverage
const CAPTCHA_DOMAINS = [
    "google.com",
    "recaptcha.net",
    "gstatic.com"
];

// After: Comprehensive coverage for all CAPTCHA providers
const CAPTCHA_DOMAINS = [
    // Google reCAPTCHA
    "google.com/recaptcha",
    "www.google.com/recaptcha",
    "gstatic.com/recaptcha",
    "www.gstatic.com/recaptcha",
    // Yandex SmartCaptcha
    "smartcaptcha.yandexcloud.net",
    "yandex.com/showcaptcha",
    // ... (27 total domains)
];

Yandex Cloud Deployment

  • Added deployment guide for Yandex Compute Cloud (VM and Docker)
  • Documented systemd service configuration
  • Included Yandex Object Storage integration notes

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • telemetry.astro.build
    • Triggering command: node /home/REDACTED/work/Radius/Radius/node_modules/.bin/astro build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

update the recapta system to alow for recapta to function, as it still will not properley load in the recaptia, also add yandex cloud support.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@codesandbox
Copy link

codesandbox bot commented Nov 17, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
Copilot AI changed the title [WIP] Update recaptcha system to improve loading issues Fix reCAPTCHA loading and add Yandex Cloud support Nov 17, 2025
Copilot AI requested a review from sriail November 17, 2025 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants