Skip to content

docs: harden origin regex examples and warn on credentials#427

Open
Errr0rr404 wants to merge 1 commit into
expressjs:masterfrom
Errr0rr404:docs/secure-origin-examples
Open

docs: harden origin regex examples and warn on credentials#427
Errr0rr404 wants to merge 1 commit into
expressjs:masterfrom
Errr0rr404:docs/secure-origin-examples

Conversation

@Errr0rr404

Copy link
Copy Markdown

Summary

  • Replace unanchored /example\\.com$/ examples that also match evil-example.com with host-boundary patterns.
  • Document that origin: true combined with credentials: true reflects any request Origin.

Fixes #408
Fixes #422

Test plan

  • Docs-only change

Replace unanchored /example\\.com$/ examples that also match
evil-example.com with host-boundary patterns, and document that
origin: true combined with credentials: true reflects any Origin.

Fixes expressjs#408
Fixes expressjs#422
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a note in the docs about origin: true and credentials: true being dangerous Security: README regex example allows unintended origin matching

1 participant