mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-03-01 19:59:32 +00:00
Add authentication API
This commit is contained in:
@@ -62,7 +62,7 @@ function mark_watched(target) {
|
||||
xhr.timeout = 20000;
|
||||
xhr.open("POST", url, true);
|
||||
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
||||
xhr.send("token=<%= URI.escape(env.get?("token").try &.as(String) || "") %>");
|
||||
xhr.send("csrf_token=<%= URI.escape(env.get?("csrf_token").try &.as(String) || "") %>");
|
||||
|
||||
xhr.onreadystatechange = function() {
|
||||
if (xhr.readyState == 4) {
|
||||
|
||||
Reference in New Issue
Block a user