Help making graphql playground work
Hello guys, i was trying to deploy my Strapi project on Railway. As i remember yesterday it worked but today i've added a custom domain and the website isn't working anymore. I was going to /graphql (for graphql playground) and i have the error "Server cannot be reached" and im not sure why. In localhost Strapi worked on 1337 and in deploy log it say it's running on 6029 (it changes on every deploy), should that be the problem?
plugins.js
Is there a way to make every deploy to run on 1337 maybe that's the problem?
10 Replies
Project ID:
07924bb4-bdf2-4b21-a94d-cf733e8969a5
07924bb4-bdf2-4b21-a94d-cf733e8969a5
No search results found.
β οΈ experimental feature
what console errors do you see?
That's what i have in the frontend website console (when trying to fetch data through graphql)
{"name":"ApolloError","graphQLErrors":[{"message":"Forbidden access","extensions":{"error":{"name":"ForbiddenError","message":"Forbidden access","details":{}},"code":"FORBIDDEN"}}],"protocolErrors":[],"clientErrors":[],"networkError":null,"message":"Forbidden access"}
For /graphql playground (see the image)
and for deploy logs i have no erroryou haven't set any CSR headers
Thanks, i'm gonna search what CSR is first π
After an hour of searching, i found that I have to add
to routes but I can't find where these are
you are also trying to connect to an http endpoint, so thats no good either
apparently that was the problem π Huge thanks for your time
no problem, sorry I didn't catch it when you first sent the screenshot