kopia lustrzana https://github.com/fediversespace/fediverse.space
add netlify deploy previews to CORS
rodzic
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"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue