Barcelona CSP errors in PF8

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
Melloware
Posts: 3716
Joined: 22 Apr 2013, 15:48

02 Apr 2020, 20:52

See this PF ticket: https://github.com/primefaces/primefaces/issues/5712

CSP does not work in PF8 due to the Barca layout.js.

I documented my thoughts on why here: https://github.com/primefaces/primefaces/pull/5721
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

03 Apr 2020, 10:53

Hi Melloware,
I don't fully understand, but if you add a target name to 'off (click), is it resolved?

Code: Select all

this.menulinks.off('click.menuitem').on('click.menuitem', function(e) { // instead of off('click')

Melloware
Posts: 3716
Joined: 22 Apr 2013, 15:48

03 Apr 2020, 13:54

@Aragorn,

I went through all OFF click events in layout.js and gave them a correct qualifier and I have confirmed doing the above FIXED it!!

So this probably a daunting task but I think you need to go through every premium theme and for all "click" events add .off('click.xxx').on('click.xxx');

Mello
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

06 Apr 2020, 11:29

Thanks a lot @melloware ;)

Best Regards,

Post Reply

Return to “Barcelona - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests