WordPress API – CORS Error
-
Hi there,
I am trying to request data from WordPress themes and plugins api, but I am always getting CORS errors as response :v
I used the query below on postman and it worked, but on my website it does not work:
https://api.wordpress.org/themes/info/1.1?action=query_themes&request[search]=Twenty Twenty-One&request[fields][downloadlink]=1&request[fields][downloaded]=0&request[fields][screenshot_url]=1&request[fields][rating]=0&request[fields][num_ratings]=0&request[fields][homepage]=0&request[fields][description]=0&request[fields][author]=0
I am making the request on the website below:
https://wptemplatebuilder.ssaweb.solutions/2021/02/07/hello-world/
Link to the API:
https://codex.wordpress.org/WordPress.org_API#Themes
If you go to your browser’s console, you’ll see the error there.
Am I missing something?
Thanks in Advance.
The page I need help with: [log in to see the link]
- The topic ‘WordPress API – CORS Error’ is closed to new replies.