CORS policy Error In Working With Graphql, ReactJs,Apollo client.

  1. Stop Your Backend Server (in my case http://localhost:6969/graphql)
  2. Install install CORS module Command(npm i cors save)
  3. And add the following code to index.js(in my case backend main server file) file .

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

HTML5 Canvas drawing application on Github pages (beginner-friendly tutorial)

Task List App — React and Redux with Typescript Part 2

Creating an Apple App Clip with React Native

How to create dynamic charts and diagrams inside your markdown texts using Mermaid?

How To Setup GraphQL, Vue.js, and Phoenix 1.3 Part 1: The Backend

leetcode 503. Next Greater Element II

JS Demystified 01 — Variable Hoisting

Modify Slack Username

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Krushna53

Krushna53

More from Medium

LinguiJS: Managing message catalogs across multiple application instances

React Table — Implement row selection with controlled server-side pagination

Sync local and remote Zustand store in ReactJS