Skip to content
Snippets Groups Projects
Commit 4f87b836 authored by kaniini's avatar kaniini
Browse files

endpoint: move CORSPlug in front of Plug.Static

parent 03a9990b
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,8 @@ defmodule Pleroma.Web.Endpoint do
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug(CORSPlug)
plug(Plug.Static, at: "/media", from: Pleroma.Uploaders.Local.upload_path(), gzip: false)
plug(
......@@ -57,7 +59,6 @@ defmodule Pleroma.Web.Endpoint do
extra: "SameSite=Strict"
)
plug(CORSPlug)
plug(Pleroma.Web.Router)
@doc """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment