Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaumanali94 authored Sep 13, 2024
2 parents 7d3f6cb + 4d934c1 commit df392c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ export default {
message: "Header `{{property}}` should be defined on all responses.",
description:
'Setting up CORS headers will control which websites can make browser-based HTTP requests to your API, using either the wildcard "*" to allow any origin, or "null" to disable any origin. Alternatively you can use "Access-Control-Allow-Origin: https://example.com" to indicate that only requests originating from the specified domain (https://example.com) are allowed to access its resources.\n\nMore about CORS here: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS.',
given: "$..headers",
given: "$..[responses][*].headers",
then: {
field: "Access-Control-Allow-Origin",
function: truthy,
Expand Down

0 comments on commit df392c4

Please sign in to comment.