Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-27 04:06:10 +01:00
forgejo/routers/api/v1
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
..
activitypub More refactoring of db.DefaultContext (#27083) 2023-09-15 06:13:19 +00:00
admin chore(api): support ignore password if login source type is LDAP for creating user API (#28491) (#28525) 2023-12-22 12:10:03 +01:00
misc [BRANDING] Update nodeinfo branding 2023-11-13 13:58:18 +01:00
notify More db.DefaultContext refactor (#27265) (#27347) 2023-09-29 13:35:01 +00:00
org [MODERATION] User blocking 2023-11-13 13:58:02 +01:00
packages Another round of db.DefaultContext refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00
repo Also sync DB branches on push if necessary (#28361) (#28403) 2023-12-12 15:21:33 +01:00
settings Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
swagger [MODERATION] User blocking 2023-11-13 13:58:02 +01:00
user Fix comment permissions (#28213) (#28216) 2023-11-26 13:56:50 +01:00
utils Fix comment permissions (#28213) (#28216) 2023-11-26 13:56:50 +01:00
api.go Refactor CORS handler (#28587) (#28611) 2024-01-16 14:08:38 +00:00