<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>React - Tag - gowinder&#39;s Blog</title>
        <link>https://gowinder.work/en/tags/react/</link>
        <description>React - Tag - gowinder&#39;s Blog</description>
        <generator>Hugo -- gohugo.io</generator><language>en</language><copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright><lastBuildDate>Tue, 28 Mar 2023 11:01:11 &#43;0800</lastBuildDate><atom:link href="https://gowinder.work/en/tags/react/" rel="self" type="application/rss+xml" /><item>
    <title>Fixing a Server-Side CORS Issue in React Development Mode</title>
    <link>https://gowinder.work/en/fixing-a-server-side-cors-issue-in-react-development-mode/</link>
    <pubDate>Tue, 28 Mar 2023 11:01:11 &#43;0800</pubDate>
    <author>Author</author>
    <guid>https://gowinder.work/en/fixing-a-server-side-cors-issue-in-react-development-mode/</guid>
    <description><![CDATA[<h1 id="fixing-a-server-side-cors-issue-in-react-development-mode">Fixing a Server-Side CORS Issue in React Development Mode</h1>
<h2 id="background">Background</h2>
<p>Recently I was building a backend proxy service for <code>openai</code> — an account pool for a backend pool that buffers <code>completion</code> requests coming from the front end.</p>
<p>The backend was basically done, so I needed a demo front end for testing and demonstration. I used <code>react</code> to build a simple chat front end; most of the code was generated by <code>GPT-4</code> over several rounds and stitched together. Since I had never written <code>react</code>, it took me a while to pick and stitch the pieces, because <code>CHATGPT</code> also makes mistakes — obvious to anyone who knows, but easy to fall for if you don&rsquo;t.</p>]]></description>
</item>
</channel>
</rss>
