accept

Sets or retrieves a comma-separated list of content types.

MDN Reference