Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeshelf_cors_headers

CORS headers middleware for Shelf.

pub.devRemove
shelf_helmet

Secure Dart Shelf and Dart Frog apps by setting HTTP security headers

pub.devRemove
ScoresHealth47 (best)45
Maintenance01 (best)
Quality9196 (best)
Popularity60 (best)21
Community1141 (best)
Compatibility100100
UsageDownloads (30 days)41k (best)1.1k
Likes41 (best)18
Pub points140 / 160150 / 160 (best)
GitHub stars88
MaintenanceLatest release0.1.5, 4 years ago2.3.0, 3 years ago (best)
Major versions in 12 months00
Contributors2 (best)1
PublisherUnverifiedjxstxn.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies11
LicenseMITAPACHE-2.0
Setup effortLowLow
JudgementStrengths
  • Handles preflight requests automatically
  • Allows custom origin checkers such as originOneOf
  • Easy to integrate into the Shelf Pipeline
  • Wraps 13 individual security header middlewares into a single easy-to-use call.
  • Highly configurable options for individual headers and policies.
  • Out-of-the-box support for popular frameworks like Shelf, Dart Frog, and Pharaoh.
Weaknesses
  • Limited to the Shelf ecosystem
  • Not a silver bullet for overall application security.
  • Requires careful tuning of options like CSP to avoid breaking legitimate web page resources.
WarningsNoneNone
shelf_cors_headers vs shelf_helmet: which Flutter package should you use? | pubscout