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.
Solved! Go to Solution.
Views
Replies
Total Likes
You can download the same from your cloud-manager instance. Check the below article :-
Hi,
It only shows the domain name which is going to 403 page as per your attached screenshot . What about the other part of the URL that you are trying to access ? Below points you can consider to debug the same :-
1) First check if the persisted queries are published or not ?
2) Check the dispatcher and publish instance logs to check the request flow.
Thanks,
Somen
Hi @somen-sarkar ,
Thank you so much for the response. Could you please help me where to get those logs from?
Thanks,
Rakesh
You can download the same from your cloud-manager instance. Check the below article :-
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies