cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Commented] (CB-2342) Media API allows non-whitelisted audio to be played
Date Fri, 01 Feb 2013 20:42:13 GMT


Shazron Abdullah commented on CB-2342:

As commented by Andrew Grieve, CDVSound.m does not set the User-Agent, thus all network connections
from the plugin bypasses the whitelist. 

How to set the User-Agent header is documented here in "Upgrading to 2.3.0":

> Media API allows non-whitelisted audio to be played
> ---------------------------------------------------
>                 Key: CB-2342
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>             Fix For: 2.5.0
> Repro steps:
> 1. Locate an audio file that can be played from a network location
> 2. Make sure that the location of the file from (1) is not in the whitelist config.xml
> 3. Play the audio file using the Media API
> Expected:
> Media file does not play, it is rejected by the whitelist.
> Actual:
> Media file plays, it is not rejected by the whitelist.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message