<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Pranjal</title>
    <description>The latest articles on DEV Community by Pranjal (@pranjal62005878).</description>
    <link>https://dev.to/pranjal62005878</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1075706%2F765fe96e-fe94-40c0-9b6b-43725baa546a.jpg</url>
      <title>DEV Community: Pranjal</title>
      <link>https://dev.to/pranjal62005878</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pranjal62005878"/>
    <language>en</language>
    <item>
      <title>I am getting a CORS error while accessing api in react</title>
      <dc:creator>Pranjal</dc:creator>
      <pubDate>Tue, 02 May 2023 21:24:37 +0000</pubDate>
      <link>https://dev.to/pranjal62005878/i-am-getting-a-cors-error-while-accessing-api-in-react-2jad</link>
      <guid>https://dev.to/pranjal62005878/i-am-getting-a-cors-error-while-accessing-api-in-react-2jad</guid>
      <description>&lt;p&gt;Error- Access to fetch at 'http://......' from origin '&lt;a href="http://localhost:3000"&gt;http://localhost:3000&lt;/a&gt;' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.&lt;/p&gt;

&lt;p&gt;The header already contains- Access-Control-Allow-Origin': '*'. I can see that in postman. still i am getting the above error. How do I solve this issue? &lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
