diff --git a/html/login.html b/html/login.html index dcb6089..119a933 100644 --- a/html/login.html +++ b/html/login.html @@ -19,7 +19,7 @@

RTL Switch Login

- +
diff --git a/httpd/httpd.c b/httpd/httpd.c index 0a861a3..7ac3dbf 100644 --- a/httpd/httpd.c +++ b/httpd/httpd.c @@ -699,7 +699,14 @@ void httpd_appcall(void) slen = strtox(outbuf, "HTTP/1.1 200 OK\r\nContent-Type: "); slen += strtox(outbuf + slen, mime_strings[f_data[entry].mime]); - slen += strtox(outbuf + slen, "; charset=UTF-8\r\nCache-Control: max-age=60, must-revalidate\r\nAccess-Control-Allow-Origin: *\r\nContent-Security-Policy: style-src 'self' 'unsafe-inline'\r\n\r\n"); + /* Complete, first-party CSP: everything the UI needs is same-origin + * (scripts, styles, the SVG port icons, the /*.json fetches and the + * login/cmd form POSTs). 'unsafe-inline' for script covers the inline + * onclick handlers and the small inline