Tag: cors
-
fetch graphql query from external server
0 i’m trying to fetch some leetcode stats using leetcode’s graphql schema. when i enter the query in the browser, it gives me a response, but it’s not responding to me when i use axios. here’s the query i enter in the browser: https://leetcode.com/graphql?query=query { questionSubmissionList( offset: 0, limit: 20, questionSlug: "two-sum" ) { lastKey…
-
why i can’t connect with my api , the header of requset is (blocked by cors) nodejs
0 I want to return data from my graphql API, I have two front-end in one of these is work, but in another front-end, it doesn’t work when I run the first front end in this port it works but for the second one to doesn’t work and it says blocked by cors policy hare…
-
ApolloServer: createAPIGatewayProxyEventV2RequestHandler — how to set up CORS?
0 I’m splitting a project into client/server sub projects, so now I have to deal with CORS issues between the client and server running under different ports on localhost. I’m using ApolloServer 4, and can’t find any documentation for setting the Access-Control-Allow-Origin header for an AWS lambda server. This is the setup: import { ApolloServer…
-
cors problem with node, typescript, apollo and graphql
0 I’m getting corns with my application. Have I configured my server incorrectly ? I’m trying to create a user in my PostgreeSQL database via the frontend. I’ve made a tsx component which is a form. When I submit the data, it returns a cors error, my frontend being at localhost:3000 and my backend at…
-
Apollo4 and GraphQL CORS
-1 I’m trying to access my graphQL server on my production server but getting the CORS error. The request url is: https://mov****.at/graphql In my index.mjs where I start the Apollo server I have CORS defined as so: app.use( ‘/graphql’, cors({ origin: [‘https://mov***.at’, ‘https://mov***.at/graphql’, ‘https://studio.apollographql.com’] }), bodyParser.json(), expressMiddleware(server), ); And in my graphql.module.ts I have the…