Urgent.News

What's breaking now, across thousands of outlets.

Tech

Zero of our 79 pages send a Content-Security-Policy, and the strict version would need 892 hashes

Our site sends six security headers on every response. Count them yourself: curl -sI https://pub-trivia.app/faq You get strict-transport-security , x-content-type-options , x-frame-options , referrer-policy , permissions-policy and x-dns-prefetch-control . You do not get a content-security-policy , because there is no CSP anywhere in the 79 pages in our sitemap . I grepped the response headers of…

The website in question sends six security headers on every response, but crucially, there is no Content-Security-Policy (CSP) among them. A content security policy would provide an additional layer of security by specifying which resources can be loaded on a webpage.

To verify this, the reporter searched through the 79 pages of the site's sitemap and found zero occurrences of a CSP. The repository also contained only one CSP, which was added by Next.js when optimizing images. This policy aims to prevent scripts from running in routes that should not be script hosts.

The reporter then estimated the cost of implementing a strict CSP on the site. For this, they counted the number of script tags with a src attribute, cross-origin script tags with integrity, inline script tags, inline JSON-LD blocks, and various other elements. They found that there are 1,496 script tags with src, 1,557 executable inline scripts, and 200 JSON-LD blocks.

The majority of these elements are not a significant security concern. The site does not have any forms, frames, plugins or base elements, which removes the need for several directives in the CSP. The reporter also noted that there are no javascript: URLs or style attributes in the site, further reducing the scope of the policy.

The most significant cost would come from the inline script tags and JSON-LD blocks. These would require hashes to be included in the CSP, adding to its size. However, the reporter found that JSON-LD blocks do not need hashes, as they are not executed as scripts.

In conclusion, while implementing a strict CSP could enhance security, the cost in terms of policy size and the need for per-route policies due to the site's dynamic nature could make it impractical.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

'Zionist regime's false flag': Iran warns France over supermarket cyberattack

'Zionist regime's false flag': Iran warns France over supermarket cyberattack Submitted by MEE staff on Sun, 11/15/2026 - 08:59 Paris has accused an IRGC-linked cyber unit of targeting refrigeration…

  • France accuses Iran of cyberattacks on supermarkets, causing damage and food loss
  • Iran's IRGC spokesman calls French allegations "ridiculous" and denies targeting civilians
  • France summons Iran's ambassador and threatens new sanctions over the alleged false flag operation

Wisp - A fast, fun web framework for Rust

Hi, I built Wisp, a web framework for Rust. Here is a 90-second video of it: https://www.youtube.com/watch?v=g0LPPzrQux8 The idea: a folder is a URL, and its +page.wisp file is the page.

  • Wisp is a fast, user-friendly web framework for Rust
  • Enables URL-based folder structure and .page.wisp file generation
  • Single binary packaging with server-side validation and reactivity

More from Sunday 15 November →