on master help sign in
quick cors patch
commitdb096ffd60b54b19b5135c5c2b957cd027e746cf authoriko <ilyakooo0@gmail.com> dateSat 23 Feb 2019, 20:33 (8 years ago) parentb5ecc3f
1 file changed+1−1
denis/src/Server/Server.hs+1−1
denis/src/Server/Server.hs+1−1
@@ -50,7 +50,7 @@ runServer = do
5050
5151policy :: CorsResourcePolicy
5252policy = CorsResourcePolicy {
53− corsOrigins=Nothing,
53+ corsOrigins = Just (["http://localhost:8080", "http://localhost:4000", "http://127.0.0.1:4000", "http://127.0.0.1:8080", "http://lvh.me:4000", "http://lvh.me:8080"], True), -- Nothing,
5454 corsMethods=[methodGet, methodPost],
5555 corsRequestHeaders = ["content-type"],
5656 corsExposedHeaders = Nothing,