add netlify deploy previews to CORS

This commit is contained in:
Tao Bojlén 2020-05-18 19:36:53 +01:00
parent d7b3cf8932
commit 9b9dec818a
No known key found for this signature in database
GPG key ID: C6EC7AAB905F9E6F

View file

@ -46,7 +46,7 @@ defmodule BackendWeb.Endpoint do
) )
plug(Corsica, plug(Corsica,
origins: ["http://localhost:3000", ~r{^https?://(.*\.?)fediverse\.space$}], origins: ["http://localhost:3000", ~r{^https://(.*\.?)fediverse\.space$}, ~r{^https://(.*\.?)fediverse-space\.netlify\.app$}],
allow_headers: ["content-type", "token"] allow_headers: ["content-type", "token"]
) )