Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Commit 810173b

Browse files
committed
allow any origin
1 parent bf7445c commit 810173b

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

back/src/Server.hs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,14 @@ corsPolicy = cors (const $ Just policy)
7575
policy =
7676
simpleCorsResourcePolicy
7777
{ corsMethods = ["GET", "POST", "PUT", "OPTIONS"],
78-
corsOrigins =
79-
Just
80-
( [ "https://br4ch1st0chr0n3.github.io/try-phi-front",
81-
"https://br4ch1st0chr0n3.github.io/",
82-
"https://br4ch1st0chr0n3.github.io",
83-
"http://localhost:1234"
84-
],
85-
True
86-
),
78+
corsOrigins = Nothing,
79+
-- Just
80+
-- ( [ "https://br4ch1st0chr0n3.github.io",
81+
-- "https://objectionary.github.io",
82+
-- "http://localhost:1234"
83+
-- ],
84+
-- True
85+
-- ),
8786
corsRequestHeaders = ["authorization", "content-type"]
8887
}
8988

0 commit comments

Comments
 (0)