forgejo/docs/content/doc/advanced
Lunny Xiao b01dce2a6e
Allow render HTML with css/js external links (#19017)
* Allow render HTML with css/js external links

* Fix bug because of filename escape chars

* Fix lint

* Update docs about new configuration item

* Fix bug of render HTML in sub directory

* Add CSP head for displaying iframe in rendering file

* Fix test

* Apply suggestions from code review

Co-authored-by: delvh <dev.lh@web.de>

* Some improvements

* some improvement

* revert change in SanitizerDisabled of external renderer

* Add sandbox for iframe and support allow-scripts and allow-same-origin

* refactor

* fix

* fix lint

* fine tune

* use single option RENDER_CONTENT_MODE, use sandbox=allow-scripts

* fine tune CSP

* Apply suggestions from code review

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2022-06-16 11:33:23 +08:00
..
adding-legal-pages.en-us.md Fix various typos of software names (#18083) 2021-12-24 11:56:57 +08:00
clone-filter.en-us.md Enable partial clone by default (#18195) 2022-01-06 06:38:38 +01:00
cmd-embedded.en-us.md Fix various typos of software names (#18083) 2021-12-24 11:56:57 +08:00
config-cheat-sheet.en-us.md Allow render HTML with css/js external links (#19017) 2022-06-16 11:33:23 +08:00
config-cheat-sheet.zh-cn.md Allow render HTML with css/js external links (#19017) 2022-06-16 11:33:23 +08:00
customizing-gitea.en-us.md Add the possibility to allow the user to have a favicon which differs from the main logo (#18542) 2022-05-23 23:54:48 +08:00
customizing-gitea.zh-cn.md
environment-variables.en-us.md
environment-variables.zh-cn.md
external-renderers.en-us.md Add example to render html files (#18736) 2022-02-14 21:56:17 +08:00
hacking-on-gitea.zh-cn.md
logging-documentation.en-us.md fix: some typos (#19956) 2022-06-13 15:34:46 +08:00
mail-templates-us.md
make.fr-fr.md
make.zh-cn.md
protected-tags.en-us.md Fix various typos of software names (#18083) 2021-12-24 11:56:57 +08:00
repo-indexer.en-us.md
repo-mirror.en-us.md
search-engines-indexation.en-us.md
signing.en-us.md Fix various typos of software names (#18083) 2021-12-24 11:56:57 +08:00
third-party-tools.zh-cn.md