fix: update OWASP data source to use raw GitHub URL (issue #275)#276
Merged
JaredCE merged 1 commit intoJun 23, 2026
Merged
Conversation
sulkowski
reviewed
Jun 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Currently there is an error to generate the openapi spec file ISSUE . This PR updates the OWASP secure-headers data source to fetch
headers_add.jsondirectly from GitHub's raw content host instead ofowasp.org. It seems owasp moved the project files to github.I believe request the github raw file is ok in the meantime, because the max rate limit is like 5k per source IP. Other option is use the api, but i believe will add complexity.
Changes
src/owasp.js: Changed the fetch URL fromhttps://owasp.org/www-project-secure-headers/ci/headers_add.jsontohttps://raw.githubusercontent.com/OWASP/www-project-secure-headers/refs/heads/master/ci/headers_add.json.test/unit/owasp.spec.js: Updated thenockHTTP mocks across all threegetLatesttest cases to match the new host and path.Why
The
owasp.orgendpoint no longer reliably serves the headers JSON. Pulling directly from the project's GitHub repo (masterbranch) provides a stable, canonical source for the latest secure-header definitions.Testing
test/unit/owasp.spec.jsupdated and passing, covering: