DEV Community

Discussion on: Deploying Create-React-App with Json-Server as backend to Github

Collapse
fbolaji profile image
Francis.B

Set your fetch() headers
'Access-Control-Allow-Origin': '*',
Accept: 'application/json;odata.metadata=full',
'Content-Type': 'application/json',