Prevent MIME sniffing for tracker JS

Fixes #1247
This commit is contained in:
Uku Taht 2021-09-23 11:33:42 +02:00
parent a7eab3f17b
commit 7af62e2cc4

View File

@ -64,6 +64,7 @@ defmodule PlausibleWeb.Tracker do
conn
|> put_resp_header("content-type", "application/javascript")
|> put_resp_header("x-content-type-options", "nosniff")
|> put_resp_header("cross-origin-resource-policy", "cross-origin")
|> put_resp_header("access-control-allow-origin", "*")
|> send_file(200, location)