add netlify deploy previews to CORS
This commit is contained in:
parent
d7b3cf8932
commit
9b9dec818a
|
@ -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"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue