loading...

re: Cache Busting a React App VIEW POST

FULL DISCUSSION
 

Hi,
i am facing an issue on production. Unable to access /meta.json endpoint..working fine on local.
getting this error: SyntaxError: Unexpected token < in JSON at position
Regards
Abdullah Saud

 

I had the same issue, this change helped me

fetch('/meta.json',{
headers : {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
})

 

@abdullah727 Did you ever manage to get the "Unexpected token

Code of Conduct Report abuse