projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request 'Update OTP OpenRC service' (#174) from norm/akkoma:otp-openrc...
[akkoma]
/
test
/
pleroma
/
web
/
plugs
/
http_security_plug_test.exs
diff --git
a/test/pleroma/web/plugs/http_security_plug_test.exs
b/test/pleroma/web/plugs/http_security_plug_test.exs
index 26c9fd317873776398dd6cb9ba6662c9c0847189..4e7befdd5345a89ad6b803ff1c3e1608c3ab3a5c 100644
(file)
--- a/
test/pleroma/web/plugs/http_security_plug_test.exs
+++ b/
test/pleroma/web/plugs/http_security_plug_test.exs
@@
-75,7
+75,14
@@
defmodule Pleroma.Web.Plugs.HTTPSecurityPlugTest do
test "it sets the Service-Worker-Allowed header", %{conn: conn} do
clear_config([:http_security, :enabled], true)
test "it sets the Service-Worker-Allowed header", %{conn: conn} do
clear_config([:http_security, :enabled], true)
- clear_config([:http_security, :service_worker_allowed], "/")
+ clear_config([:frontends, :primary], %{"name" => "fedi-fe", "ref" => "develop"})
+
+ clear_config([:frontends, :available], %{
+ "fedi-fe" => %{
+ "name" => "fedi-fe",
+ "custom-http-headers" => [{"service-worker-allowed", "/"}]
+ }
+ })
conn = get(conn, "/api/v1/instance")
assert Conn.get_resp_header(conn, "service-worker-allowed") == ["/"]
conn = get(conn, "/api/v1/instance")
assert Conn.get_resp_header(conn, "service-worker-allowed") == ["/"]