Solved
Allow GraphQL endpoints in Dispatcher
- June 8, 2023
- 1 reply
- 1017 views
Hi Team,
When I try to access GraphQL GET endpoint in prod environment, I get a 403 forbidden error.
I have the following added in default_filters.any file.
# Allow GraphQL & preflight requests
# GraphQL also supports "GET" requests, if you intend to use "GET" add a rule in filters.any
/0060 { /type "allow" /method '(POST|OPTIONS)' /url "/content/_cq_graphql/*/endpoint.json" }
# GraphQL Persisted Queries & preflight requests
/0061 { /type "allow" /method '(GET|POST|OPTIONS)' /url "/graphql/execute.json*" }
It works fine in dev and qa environments. Any leads would be of great help. Thanks.
Note: The publish instance of stage and prod also gives 403.