Commit Graph

6 Commits (1c7496c7a7e4c3145ab90bbef129dd7c1a0189dd)

Author SHA1 Message Date
Drew Noel 2cbea23d70
Add configuration for CORS allowed headers ()
This PR enhances the CORS middleware usage by allowing for the headers
to be configured in `app.ini`.

Fixes 

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
6543 54e9ee37a7
format with gofumpt ()
* gofumpt -w -l .

* gofumpt -w -l -extra .

* Add linter

* manual fix

* change make fmt
zeripath afd88a2418
Allow setting X-FRAME-OPTIONS ()
* Allow setting X-FRAME-OPTIONS

This PR provides a mechanism to set the X-FRAME-OPTIONS header.

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md

Co-authored-by: John Olheiser <john.olheiser@gmail.com>

Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Lunny Xiao 79ce91fdde
Movde dependents on macaron from modules/setting ()
Co-authored-by: Lauris BH <lauris@nix.lv>
Tamal Saha 171b359877 Use gitea forked macaron ()
Signed-off-by: Tamal Saha <tamal@appscode.com>
Tamal Saha 34d06f4c6b Handle CORS requests ()