diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-11-10 11:23:50 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-11-10 11:23:50 +0000 |
commit | 4f87b8362b44cf1b628248dbf38eabf670575ca2 (patch) | |
tree | 4d8f52450a7e5393518b9e18e4ec7763c0a9b516 | |
parent | 03a9990baf64cfa1abc9fb914ff4b3b24a71d416 (diff) | |
download | pleroma-4f87b8362b44cf1b628248dbf38eabf670575ca2.tar.gz |
endpoint: move CORSPlug in front of Plug.Static
-rw-r--r-- | lib/pleroma/web/endpoint.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/endpoint.ex b/lib/pleroma/web/endpoint.ex index 2469d7283..cb5de087b 100644 --- a/lib/pleroma/web/endpoint.ex +++ b/lib/pleroma/web/endpoint.ex @@ -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 """ |