diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-04-16 19:31:57 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-04-16 19:31:57 -0500 |
| commit | 11e871ba8376b4b0563d7215a11493b8d201e1c0 (patch) | |
| tree | 9c17f954e9c7aad9c9904322b1a1ae5262b133e7 /src | |
| parent | 9898b2900f553cec304ee2136d264002d1488d10 (diff) | |
| download | invidious-11e871ba8376b4b0563d7215a11493b8d201e1c0.tar.gz invidious-11e871ba8376b4b0563d7215a11493b8d201e1c0.tar.bz2 invidious-11e871ba8376b4b0563d7215a11493b8d201e1c0.zip | |
Add CORS header for videoplayback
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index e8e0e1af..a4691988 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -825,6 +825,8 @@ get "/videoplayback" do |env| env.response.headers[key] = value end + env.response.headers["Access-Control-Allow-Origin"] = "*" + chunk = Bytes[8] loop do |
