Prevent MIME sniffing for tracker JS

Fixes #1247
pull/1365/head
Uku Taht 5 years ago
parent a7eab3f17b
commit 7af62e2cc4

@ -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)

Loading…
Cancel
Save