allow reCAPTCHA request URL can be configured #4188

Closed
opened 2025-11-02 05:41:47 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @BillSJC on GitHub (Oct 26, 2019).

  • Gitea version (or commit ref): 1.9.0+
  • Git version: Not relevant
  • Operating system: Ubuntu 18.04
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I said that some region cannot access reCAPTCHA (because Google were blocked) so the js file load from Google will be unavaliable, i issued it in #6818 , and it do fix the question that user cannot acces js files in some region. However, when i try to verify the whole login process, i found the request domain on gitea SERVER still be www.google.com when js file is from www.recaptcha.net . Then i still FAIL to finish the process.

If it's possible, request domain on gitea server can be configured as same as the js file's domain

Originally created by @BillSJC on GitHub (Oct 26, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.9.0+ - Git version: Not relevant - Operating system: Ubuntu 18.04 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description I said that some region cannot access reCAPTCHA (because Google were blocked) so the js file load from Google will be unavaliable, i issued it in #6818 , and it do fix the question that user cannot acces js files in some region. However, when i try to verify the whole login process, i found the request domain on gitea SERVER still be `www.google.com` when js file is from `www.recaptcha.net` . Then i still FAIL to finish the process. If it's possible, request domain on gitea server can be configured as same as the js file's domain
GiteaMirror added the issue/needs-feedback label 2025-11-02 05:41:47 -06:00
Author
Owner

@zeripath commented on GitHub (Oct 26, 2019):

I don't understand your question. Are you talking about the configuration of recaptcha on Gitea.com ? Or are you talking about the configuration of your own Gitea server?

#6820 which is part of 1.9 will allow you to configure your own recaptcha service as you see fit. AFAICS there is no reference to any Google domain in the Gitea code, so if you have configured recaptcha correctly and are using a version of Gitea 1.9+ you should be able to configure recaptcha as you see fit. If not, can you find the place in the code that is doing this.

If you are asking about Gitea.com or try.gitea.io that's fine, just make it clear.

@zeripath commented on GitHub (Oct 26, 2019): I don't understand your question. Are you talking about the configuration of recaptcha on Gitea.com ? Or are you talking about the configuration of your own Gitea server? #6820 which is part of 1.9 will allow you to configure your own recaptcha service as you see fit. AFAICS there is no reference to any Google domain in the Gitea code, so if you have configured recaptcha correctly and are using a version of Gitea 1.9+ you should be able to configure recaptcha as you see fit. If not, can you find the place in the code that is doing this. If you are asking about Gitea.com or try.gitea.io that's fine, just make it clear.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4188