Nginx header | no Image Upload


#1

Hello everyone, my name is Christopher and I run the instance “social.anoxinon.de”.

Currently I have the problem that no more graphics can be uploaded. I have limited the problem to the “add header Content-Security Policy”.

Since I do not know very well about “headerning” I hope that someone here can help me. The current “header” looks like this: add_header Content-Security-Policy "frame-ancestors 'none'; default-src 'none'; script-src 'self'; object-src 'self'; style-src 'self' https://fonts.googleapis.com/ 'sha256-deDIoPlRijnpfbTDYsK+8JmDfUBmpwpnb0L/SUV8NeU=' 'sha256-dsU/1vqKDGkqSAJVJCzaxo3alnWrTU/iQqFREt5QB+g='; img-src * data:; media-src 'self' data:; frame-src 'none'; font-src 'self' data: https://fonts.gstatic.com/; connect-src 'self' https://social.anoxinon.de";

Does anyone happen to recognize the mistake?

Greetz from Germany


#2

I have fixed it for myself.


#3

Hey ~
I’m glad you figured it out !

Can you explain what was wrong ? Was it the CSP header ?