设置 HTTP 请求类型

所有媒体收集 API 请求的请求正文必须采用 JSON 格式,因此您应该在播放器中设置内容请求类型。例如,在 JavaScript 中,您将设置 Content-Type 请求标头,如下所示:

httpRequest.setRequestHeader('Content-Type', 'application/json'); 

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now