diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2024-02-19 00:05:34 +0100 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2024-02-19 00:16:17 +0100 |
| commit | e8a36985aff1a5b33ddf9abea85dd2c23422c2f7 (patch) | |
| tree | fdead48413b37504d1a62cf22e8cb048aa53c388 /src/invidious.cr | |
| parent | 962ce23cc2ec4d1a5147b9b1e2c1d4d436365d28 (diff) | |
| parent | 7b84bdb29b60504c1c5c88617e191767803384ab (diff) | |
| download | invidious-e8a36985aff1a5b33ddf9abea85dd2c23422c2f7.tar.gz invidious-e8a36985aff1a5b33ddf9abea85dd2c23422c2f7.tar.bz2 invidious-e8a36985aff1a5b33ddf9abea85dd2c23422c2f7.zip | |
API: Add APIHandler back (#4431)
This handler should no have been removed in 4276, as it adds the required CORS
header (Access-Control-Allow-Origin) for public acces to the API.
Thanks to iBicha for noticing this!
Diffstat (limited to 'src/invidious.cr')
| -rw-r--r-- | src/invidious.cr | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index c8cac80e..e0bd0101 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -217,6 +217,7 @@ public_folder "assets" Kemal.config.powered_by_header = false add_handler FilteredCompressHandler.new +add_handler APIHandler.new add_handler AuthHandler.new add_handler DenyFrame.new add_context_storage_type(Array(String)) |
