Score:0

Setting "Content-Security-Policy default-src https:" breaks site

de flag

I need to set the Content-Security-Policy header to allow loading scripts from any HTTPS source. When I add the following line to my nginx configuration, the look and feel of the site breaks. What am I missing?

add_header Content-Security-Policy "default-src https:";

I also tried adding a * at the end of https like this but this did not work as well,

add_header Content-Security-Policy "default-src https:*";
vidarlo avatar
ar flag
Use developer tools in a browser to verify that you're not loading any content over plain http.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.