Security Headers Plugin: JSON string is invalid

Hi, I am using the Security Headers Plugin https://github.com/bnomei/kirby3-security-headers by @bnomei. I defined my rules in a separate loader.json file. Everything seems to be working fine but when I try to change
"media-src": []
to
“media-src”: [
“self”: true
],
in my loader.json I get an exception on the frontend telling me »JSON string is invalid«. Am I doing it wrong or is this an issue with the plugin? Has anybody experienced this before?

Try

  "media-src": {
    "self": true
  },
2 Likes

Wow, that was fast! Thanks for your reply! Though I swear I wrote it the exact same way in my code before, it somehow magically works now :exploding_head: