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
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ defmodule BackendWeb.Endpoint do
)
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"]
)