On Jan 23, 2014 1:23 AM, "Frederik Braun" <[email protected]> wrote:
>
> On 22.01.2014 20:37, Ben NG wrote:
> > For now I'm creating a little app in order to test all of that.
> > I have made kind of Hello World app and i wanted to add my favorite
> > javascript lib which is YUI.
> >
> > The javascript is well loaded because i can see the YUI global object
but
> > when I try to invoke YUI() --> Error: call to Function() blocked by CSP
> >
> > I understand that YUI create all the js with the "Function" constructor.
>
> It seems that YUI is currently unable to work with CSP (and there's no
> way to disable CSP in FxOS - for very good reasons if I may add).

CSP is only applied if you are writing a privileged or certified app.

Apps that just need to do normal web things don't need to worry about CSP.
This is true for both packaged and hosted apps.

/ Jonas
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to