allow netlify deploy previews under CORS
This commit is contained in:
parent
7ce001fa54
commit
c85d455a61
|
@ -46,7 +46,11 @@ 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.com$}
|
||||
],
|
||||
allow_headers: ["content-type", "token"]
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue