Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Remove embed support from password-protected shared links

Uku Tahtcc2a34758c00
diff --git a/lib/plausible_web/controllers/stats_controller.ex b/lib/plausible_web/controllers/stats_controller.ex
index f19739ac77..7becf8aa41 100644
--- a/lib/plausible_web/controllers/stats_controller.ex
+++ b/lib/plausible_web/controllers/stats_controller.ex
@@ -82,7 +82,6 @@ defmodule PlausibleWeb.StatsController do
_e ->
conn
|> assign(:skip_plausible_tracking, true)
- |> delete_resp_header("x-frame-options")
|> render("shared_link_password.html",
link: shared_link,
layout: {PlausibleWeb.LayoutView, "focus.html"}
@@ -117,12 +116,10 @@ defmodule PlausibleWeb.StatsController do
conn
|> put_resp_cookie("shared-link-token", token)
- |> delete_resp_header("x-frame-options")
|> redirect(to: "/share/#{URI.encode_www_form(shared_link.site.domain)}?auth=#{slug}")
else
conn
|> assign(:skip_plausible_tracking, true)
- |> delete_resp_header("x-frame-options")
|> render("shared_link_password.html",
link: shared_link,
error: "Incorrect password. Please try again.",