0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-24 15:19:18 -05:00
forgejo/modules/setting
wxiaoguang 265cd70bdb
Refactor CORS handler (#28587) (#28611)
Backport #28587, the only conflict is the test file.

The CORS code has been unmaintained for long time, and the behavior is
not correct.

This PR tries to improve it. The key point is written as comment in
code. And add more tests.

Fix #28515
Fix #27642
Fix #17098

(cherry picked from commit 7a2786ca6c)
2024-01-16 14:08:38 +00:00
..
config Refactor system setting (#27000) (#27452) 2023-10-05 10:37:59 +00:00
actions.go [CI] DEFAULT_ACTIONS_URL = https://codeberg.org 2023-11-13 11:52:15 +01:00
actions_test.go [CI] DEFAULT_ACTIONS_URL = https://codeberg.org 2023-11-13 11:52:15 +01:00
admin.go [GITEA] notifies admins on new user registration 2023-11-13 14:06:27 +01:00
api.go
asset_dynamic.go
asset_static.go
attachment.go Fix incorrect default value of [attachment].MAX_SIZE (#28373) (#28376) 2023-12-08 13:41:16 +01:00
attachment_test.go
cache.go
camo.go
config.go Refactor system setting (#27000) (#27452) 2023-10-05 10:37:59 +00:00
config_env.go [BRANDING] parse FORGEJO__* in the container environment 2023-11-13 14:00:15 +01:00
config_env_test.go [BRANDING] parse FORGEJO__* in the container environment 2023-11-13 14:00:15 +01:00
config_provider.go [GITEA] add GetFile to config provider 2023-11-13 12:33:48 +01:00
config_provider_test.go Fix INI parsing for value with trailing slash (#26995) 2023-09-10 16:15:51 +00:00
cors.go Refactor CORS handler (#28587) (#28611) 2024-01-16 14:08:38 +00:00
cron.go
cron_test.go
database.go Use filepath instead of path to create SQLite3 database file (#28374) (#28378) 2023-12-08 13:41:16 +01:00
database_sqlite.go
database_test.go Fix incorrect pgsql conn builder behavior (#28085) (#28098) 2023-11-22 17:12:12 +01:00
federation.go
forgejo_storage_test.go [TESTS] verify facts for the admin storage documentation 2023-11-13 12:33:48 +01:00
git.go
git_test.go
highlight.go
i18n.go
incoming_email.go
indexer.go
indexer_test.go
lfs.go Handle base64 decoding correctly to avoid panic (#26483) 2023-08-14 10:30:16 +00:00
lfs_test.go Display deprecated warning in admin panel pages as well as in the log file (#26094) 2023-07-26 03:53:37 +00:00
log.go Clarify the logger's MODE config option (#26267) 2023-08-01 18:28:23 +00:00
log_test.go
mailer.go
mailer_test.go
markup.go
metrics.go
migrations.go
mime_type_map.go
mirror.go
oauth2.go Handle base64 decoding correctly to avoid panic (#26483) 2023-08-14 10:30:16 +00:00
other.go
packages.go Avoid creating directories when loading config (#25944) 2023-07-18 07:32:36 -05:00
packages_test.go
path.go [BRANDING] alias {FORGEJO,GITEA}_{CUSTOM,WORK_DIR} 2023-11-13 13:58:18 +01:00
path_test.go [BRANDING] alias {FORGEJO,GITEA}_{CUSTOM,WORK_DIR} 2023-11-13 13:58:18 +01:00
picture.go
project.go
proxy.go
queue.go Increase queue length (#27555) (#27562) 2023-10-10 20:22:26 +08:00
repository.go Correct default license selection 2023-12-08 14:38:06 +01:00
repository_archive.go
repository_archive_test.go
security.go Revert "Deprecate query string auth tokens (#28390) (#28430)" 2023-12-12 17:04:38 +01:00
server.go [BRANDING] Rebrand default config settings for new installs (#140) 2023-11-13 13:58:17 +01:00
service.go [GITEA] add option for banning dots in usernames 2023-11-13 14:04:16 +01:00
service_test.go Fix allowed user types setting problem (#26200) 2023-07-28 12:15:39 -04:00
session.go Use secure cookie for HTTPS sites (#26999) 2023-09-11 17:03:51 +08:00
setting.go [SEMVER] store SemVer in ForgejoSemVer after a database upgrade 2023-11-13 12:33:48 +01:00
setting_test.go
ssh.go Expanded minimum RSA Keylength to 3072 (#26604) 2023-08-28 00:53:16 +00:00
storage.go Fix storage path logic especially for relative paths (#26441) 2023-08-13 22:09:25 +02:00
storage_test.go Fix storage path logic especially for relative paths (#26441) 2023-08-13 22:09:25 +02:00
task.go
time.go
ui.go Add option to disable ambiguous unicode characters detection (#28454) (#28499) 2023-12-22 12:07:01 +01:00
webhook.go [BRANDING] add the forgejo webhook type & update webhook docs URLs 2023-11-13 13:58:18 +01:00