title: Getting CORS Error while Integrating FedEx with React Js
body: <p><strong>While working on FedEx integration with react js,</strong> we are able to get authorization key using Google extension but unable to work on other APIs. All the APIs are perfectly working in postman but not while integration. Tried checking rates and transit times but getting CORS error. I have included the code and error screenshot.Could you please help?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let body = JSON.stringify({
    "accountNumber": {
      "value": "XXXXXXXXX"
    },
    "requestedShipment": {
      "shipper": {
        "address": {
          "postalCode": 75063,
          "countryCode": "US"
        }
      },
      "recipient": {
        "address": {
          "postalCode": "L0J 0A0",
          "countryCode": "CA"
        }
      },
      "pickupType": "DROPOFF_AT_FEDEX_LOCATION",
      "serviceType": "FEDEX_GROUND",
      "rateRequestType": [
        "LIST",
        "ACCOUNT"
      ],
      "customsClearanceDetail": {
        "dutiesPayment": {
          "paymentType": "SENDER",
          "payor": {
            "responsibleParty": null
          }
        },
        "commodities": [{
          "description": "Camera",
          "quantity": 1,
          "quantityUnits": "PCS",
          "weight": {
            "units": "KG",
            "value": 20
          },
          "customsValue": {
            "amount": 100,
            "currency": "USD"
          }
        }]
      },
      "requestedPackageLineItems": [{
        "weight": {
          "units": "KG",
          "value": 20
        }
      }]
    }
  });
  axios.post("https://apis-sandbox.fedex.com/rate/v1/rates/quotes", body, {
    headers : {
    "Accept": "*/*",
    "Content-Type": "application/json",
    "authorization": `Bearer XXX`,
    "Access-Control-Allow-Origin": "*",
  }
  }).then(res =&gt; console.log(res.data));</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.6.3/umd/react.production.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.6.3/umd/react-dom.production.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  <p><a href="https://i.stack.imgur.com/SgFVY.jpg" rel="nofollow noreferrer">CORS Error</a></p>