Phoenix.Sync.Plug.CORS (Phoenix.Sync v0.5.1)
View SourceA Plug
that adds the necessary CORS headers to responses from Electric sync
endpoints.
Phoenix.Sync.Controller.sync_render/3
and Phoenix.Sync.Router.sync/2
already include these headers so there's no need to add this plug to your
Phoenix
or Plug
router. This module is just exposed as a convenience.