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]WordPress API – CORS Error=0&request[fields]=0

I am making the request on the website below:


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.

  • This topic was modified 3 days, 10 hours ago by lucasctd.

The page I need help with: [log in to see the link]

Source link