Skip to content

Commit

Permalink
undo allow bc frame
Browse files Browse the repository at this point in the history
  • Loading branch information
ah-s76 committed Feb 14, 2024
1 parent 5b90441 commit 7512093
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/recognizer_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ defmodule RecognizerWeb.Router do
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers, @hsts_header
plug :allow_bc_frame
end

pipeline :api do
Expand Down Expand Up @@ -46,15 +45,6 @@ defmodule RecognizerWeb.Router do
conn
end

defp allow_bc_frame(conn, _opts),
do:
conn
|> delete_resp_header("x-frame-options")
|> put_resp_header(
"Content-Security-Policy",
"default-src 'self'; frame-ancestors 'self' https://system76.mybigcommerce.com;"
)

scope "/", RecognizerWeb do
pipe_through [:browser, :bc]

Expand Down

0 comments on commit 7512093

Please sign in to comment.