Blocked by CORS on /v2/categories requests
-
Access to XMLHttpRequest at ‘/wp/v2/categories’ from origin ‘localhost’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
I have added the cors headers to the functions.php under the Theme folder.
I was able to fetch the posts with the endpoint /v2/posts.However, when I made request to /v2/categories,
the cors issue appears again.Is there any configurations I missed?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Blocked by CORS on /v2/categories requests’ is closed to new replies.