Skip to content

Commit

Permalink
SITES-5185 - Ensure all GraphQL Queries to publisher are using Persis…
Browse files Browse the repository at this point in the history
…tent Queries and not POST requests
  • Loading branch information
sandru85 committed Apr 26, 2022
1 parent 84aa537 commit 99fb72f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@
# Allow Apache Sling Sitemap selectors: sitemap, sitemap-index, sitemap.any-nested-or-named-sitemap
/0054 { /type "allow" /method "GET" /path "/content/*" /selectors 'sitemap(-index)?' /extension "xml" }

# Allow GraphQL & preflight requests
# GraphQL also supports "GET" or "POST" requests, if you intend to use "GET" or "POST" add a rule in filters.any
/0060 { /type "allow" /method '(OPTIONS)' /url "/content/_cq_graphql/*/endpoint.json" }
# GraphQL supports "GET" , "OPTIONS" or "POST" requests, if you intend to use any of them add a rule in filters.any

# GraphQL Persisted Queries & preflight requests
/0061 { /type "allow" /method '(GET|POST|OPTIONS)' /url "/graphql/execute.json*" }
Expand Down

0 comments on commit 99fb72f

Please sign in to comment.