Add Pragma and Cache-control HTTP headers.

This commit is contained in:
Tara Mallesh
2022-03-07 19:57:46 +00:00
parent a1bd01169f
commit 49a03419e8

View File

@@ -883,7 +883,9 @@ int add_owasp_headers(worker_st * ws)
cstp_puts(ws, "Cross-Origin-Embedder-Policy: require-corp\r\n") < 0 ||
cstp_puts(ws, "Cross-Origin-Opener-Policy: same-origin\r\n") < 0 ||
cstp_puts(ws, "Cross-Origin-Resource-Policy: same-origin\r\n") < 0 ||
cstp_puts(ws, "X-XSS-Protection: 0\r\n") < 0)
cstp_puts(ws, "X-XSS-Protection: 0\r\n") < 0 ||
cstp_puts(ws, "Pragma: no-cache\r\n") < 0 ||
cstp_puts(ws, "Cache-control: no-store\r\n") < 0))
{
return -1;
}