Merge branch 'tao/netlify-cors' into 'develop'

add netlify deploy previews to CORS

See merge request fediverse.space/fediverse.space!100
This commit is contained in:
Tao Bojlén 2020-05-18 18:50:40 +00:00
commit 412147beec
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"]
)