Permissions Error 403 in my App

Hi, I am using GraphQL in my App by query, the query works well but when i implement the query on my app using vtex with react the responses give me an error 403 , i think is something about the permissions of the server but how can i solve this?

I am using LazyQuery in my query

Hey Axel, could you share your query with us?

Hi Axel, it’s likely because vtex doesn’t allow graphQL queries from the server. In the interfaces.json file, where you declare the component, you should declare it to be rendered on the client side:

{
  "custom-component": {
    "component": "CustomComponent",
    "render": "client"
  }
}