I am a newbie to React. I created a React app which is working fine on npm start. But after npm run build, I am not getting full page info. i.e. I am getting the nav bar but the main content is not available. On the console, the following error is present:
'file:///C:/Users/pkv97/OneDrive/Desktop/ReactJs/CodeWithHarry/TextUtilsHarry/text_utils/build/%E2%80%9Dmanifest.json%E2%80%9D' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome, https, chrome-untrusted.
I tried running npm build on D drive as it is searching files on OneDrive but still facing the same issue. On npm build, it should work the same as it is working on npm start.
Can someone guide how to fix it?