If you use client-side API calling then cors errors are faced therefore I used getServerSideProps but due to this I can't display any loading and there is a slight delay which is a bad user experience.
Therefore we need to implement client-side API calls such that we don't face cors errors.
If you use client-side API calling then cors errors are faced therefore I used getServerSideProps but due to this I can't display any loading and there is a slight delay which is a bad user experience.
Therefore we need to implement client-side API calls such that we don't face cors errors.