How to get access to domain with React


#1

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

Any ideas?


#2

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.