config: properly configure CORSPlug.
[akkoma] / installation / pleroma.nginx
index 6dc2c97609f5b68a000acc14e97df70c0da23b84..65a3cdb4cecce21f00caf974646b775b825d04f8 100644 (file)
@@ -62,7 +62,6 @@ server {
     location / {
         # if you do not want remote frontends to be able to access your Pleroma backend
         # server, remove these lines.
-        add_header 'Access-Control-Allow-Origin' '*' always;
         add_header 'Access-Control-Allow-Methods' 'POST, PUT, DELETE, GET, PATCH, OPTIONS' always;
         add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type, Idempotency-Key' always;
         add_header 'Access-Control-Expose-Headers' 'Link, X-RateLimit-Reset, X-RateLimit-Limit, X-RateLimit-Remaining, X-Request-Id' always;