2016-11-25 3 views
1

WooCommerce REST API 동일한 브라우저에서 Wordpress에 로그인 할 때 인증에 실패했습니다.WooCommerce REST API 로그인시 인증 실패

로그 아웃 - 모든에

로그인을 작동 -이 오류 얻을 :

{"code":"woocommerce_rest_cannot_view","message":"Sorry, you cannot view this resource.","data":{"status":401}} 

같은 아약스에 간다 :

jQuery.ajax({ 
    url:'https://example.com/wp-json/wc/v1/products/30552?consumer_key=ck_xxx&consumer_secret=cs_xxx', 
    success:function(d){window.d = d;} 
}); 

및하려고 할 때 직접 동일한 URL에 액세스 할 수 브라우저.

이 Situtation의 원인은 무엇입니까?

나는 그것에 대한 어떤 유용한 이유도 생각할 수 없다.

답변