Error when trying to add product to cart.
AUFrasier opened this issue · 6 comments
AUFrasier commented
avidsapp commented
I'm getting this error too. Bump
CiubancanCristian commented
I guess you are authenticated, try relogging and see if it fixes it
avidsapp commented
I resolved the error by changing the GATSBY_WORDPRESS_URL env variable to my WordPress backend url
AUFrasier commented
@avidsapp I ensured that those values contained my backend WP url. Still not working. Have been stuck on this issue for the past few days. Perhaps it's an issue with where my sites are being hosted? My gatsby site has been deployed to AWS Amplify and my headless WP site is being host on WP Engine. DNS being managed by AWS Route 53. Any suggestions?
avidsapp commented
Looks like CORS issue. Try adding a CORS plugin to your WordPress site that does Access-Control-Allow-Origin: *
or add it to your proxy
AUFrasier commented