Error "You are probably offline" przy zapytaniu API Wordpress

hej

Czy możecie mi pomóc z rozwiązaniem problemu?

Nie mogę pobrać postów, w jaki sposób mogę autoryzować zapytanie?

        apiFetch({
            path: 'http://wordpress.test/wp-json/wp/v2/posts',
            method: 'GET',
        }).then((posts) => {
            console.log(posts);
        });
Access to fetch at 'http://wordpress.test/wp-json/wp/v2/posts?_locale=user' from origin 'http://localhost:3000' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.

index.js?8eaa:105 GET http://wordpress.test/wp-json/wp/v2/posts?_locale=user net::ERR_FAILED 401

Uncaught (in promise) {code: 'fetch_error', message: 'You are probably offline.'}