aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-11-03 13:38:01 +0100
committerlain <lain@soykaf.club>2018-11-03 13:38:01 +0100
commite954cfcc2c9e9b36bf31dc0bdbc90b1f8a2d47ce (patch)
treef3bd88c56ec967b4e3e77cae9552cc402dec0a39 /lib
parent4bcdbb12a40049ca4504602ffcf3e1e95455706b (diff)
downloadpleroma-e954cfcc2c9e9b36bf31dc0bdbc90b1f8a2d47ce.tar.gz
Add CORSPlug to make web-based OAuth easier.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/endpoint.ex1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/web/endpoint.ex b/lib/pleroma/web/endpoint.ex
index 955bd61f3..6673ab576 100644
--- a/lib/pleroma/web/endpoint.ex
+++ b/lib/pleroma/web/endpoint.ex
@@ -56,6 +56,7 @@ defmodule Pleroma.Web.Endpoint do
extra: "SameSite=Strict"
)
+ plug(CORSPlug)
plug(Pleroma.Web.Router)
@doc """