Hi, I tried today add posts from my blog to my portfolio website using React and fetch() method, but all time I had CORS error with access denied on production. So, what I have to do if I want to get access to my blog website?
I made a query to the database by adding my page to the client_trusted_domains table, I tried using
no-cors and other settings when I execute fetch() but it still didn’t work. I don’t want using jQuery so I didn’t do STEP 2 from https://api.ghost.org/docs/ajax-calls-from-an-external-website