~afontaine/home unlisted

052eb12c4fe8d5bb4ccf71a677cbbb6fff51d339 — Andrew Fontaine 3 months ago f3beb12
Opt out of FLOC

Seems tracky, don't like it.
1 files changed, 4 insertions(+), 0 deletions(-)

M apps/home_web/lib/home_web/router.ex
M apps/home_web/lib/home_web/router.ex => apps/home_web/lib/home_web/router.ex +4 -0
@@ 3,6 3,7 @@ defmodule HomeWeb.Router do

  pipeline :browser do
    plug :accepts, ["html"]
    plug :floc_opt_out
    plug :fetch_session
    plug :fetch_flash
    plug :protect_from_forgery


@@ 53,4 54,7 @@ defmodule HomeWeb.Router do
      live_dashboard "/dashboard", metrics: HomeWeb.Telemetry
    end
  end

  def floc_opt_out(conn, _),
    do: merge_resp_headers(conn, [{"permissions-policy", "interest-cohort=()"}])
end