Deploying to my gigalixir application I got ssl issues (blocked:mixed-content)
pipeline :api do
plug(:accepts, ["json"])
if Application.get_env(:my_app, :force_ssl) do
plug(Plug.SSL, rewrite_on: [:x_forwarded_proto], host: nil)
end
end
pipeline :auth do
plug MyAppWeb.Plug.AuthCheck
end
scope "/api", MyAppWeb do
pipe_through :api
pipe_through :auth
post "/messages", MessageController, :query_messages
end