Comments (6)
Unfortunately as you know ui:debug
is a JSF component NOT a PF component and it uses JS eval
. In all of PrimeFaces code we do this...
PrimeFaces.csp.eval(XXX);
Which allows for eval under CSP. Becuase ui:debug
is doing a raw eval
you will get this CSP violation. Not sure there is anything PF can fix about this...
from primefaces.
both Mojarra and MyFaces do this in UIDebug.java...
sb.append("function faceletsDebug(URL) { day = new Date(); id = day.getTime(); eval(\"page\" + id + \" "
+ "= window.open(URL, '\" + id + \"', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,"
+ "resizable=1,width=800,height=600,left = 240,top = 212');\"); };");
from primefaces.
I understand. Thank you for investigating it.
from primefaces.
@martin654 i could add a <pe:debug>
to PrimeFaces Extensions which will handle the CSP if you are interested we could open a ticket over at PFE?
from primefaces.
for now i will close this as this is an issue in both JSF libs.
from primefaces.
@martin654 i could add a
<pe:debug>
to PrimeFaces Extensions which will handle the CSP if you are interested we could open a ticket over at PFE?
Hi, we use ui:debug sometimes in non-prod environment. We can templorarily disable CSP for this. It isn't a must-have feature for us, but thanks for the offer. Thanks
from primefaces.
Related Issues (20)
- Captcha: command button not working with p:captcha HOT 5
- JDK8: `org.json` dependency causes java version mistatch HOT 4
- SubTable: still alive even after been announced deprecated in 10.0.0 HOT 8
- Integration-tests: move to JakartaEE (10) HOT 6
- FileUpload (advanced): DragAndDrop not working, javascript error HOT 6
- DataTable: Select/unselect all with selectionPageOnly="false" does not work properly HOT 6
- Charts axis ticks are not completely visible HOT 8
- BooleanCheckbox: duplicates ui-state-disabled HOT 3
- Datatable: Values in editable fields not changing after removing rows HOT 3
- Schedule: SelectEvent does not bring the correct time HOT 5
- FileUpload (advanced): Multiple FileUpload - regressions when some files do not meet the limits HOT 3
- Improve SelectCheckboxMenu keyboard accessibility on PF11
- DataExporter: Delivers "No enum constant com.sun.faces.context.ExternalContextImpl.PREDEFINED_COOKIE_PROPERTIES.SameSite" HOT 7
- WIKI: clean up HOT 11
- Core: Support URN and URI Namespaces? HOT 1
- When should we remove Javax support? HOT 5
- Can we remove p:resetInput? HOT 9
- DataTable: ALT+W Keyboard Shortcut to AUTO adjust the width of resizeable columns HOT 11
- SelectOneButton: Improve ARIA label handling
- DatePicker: cannot type in datepicker when first displayed (14.0.0) HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from primefaces.