문제

I'm trying to get HEAD on an object, and I'm getting 403 forbidden. What permissions do I need to, in order to get HEAD on the object, using the REST API?

I have the code in place to get the full object contents using a signed URL... but when I switch to get HEAD instead of getting the full object, it gives me the 403 forbidden

도움이 되었습니까?

해결책

It's the same permission as for GET. If you can get an object, you can do a HEAD request on it. But you can't use the same signed URL for HEAD and GET because the request method is used to compute the signature, so they will have different signatures. Create a new signed URL for the HEAD request and it should work.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top