diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-04-16 19:41:38 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-04-16 19:41:38 -0500 |
| commit | 86627d83034854646d0d5e62c4452342cb11fbd1 (patch) | |
| tree | a151faa5f33c6e7cda26b0be88150b523f6ec9f0 /src | |
| parent | 11e871ba8376b4b0563d7215a11493b8d201e1c0 (diff) | |
| download | invidious-86627d83034854646d0d5e62c4452342cb11fbd1.tar.gz invidious-86627d83034854646d0d5e62c4452342cb11fbd1.tar.bz2 invidious-86627d83034854646d0d5e62c4452342cb11fbd1.zip | |
Add options for videoplayback
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index a4691988..e8df4ecf 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -843,6 +843,11 @@ get "/videoplayback" do |env| end end +options "/videoplayback" do |env| + env.response.headers["Access-Control-Allow-Origin"] = "*" + env.response.headers["Access-Control-Allow-Methods"] = "GET" +end + error 404 do |env| error_message = "404 Page not found" templated "error" |
