Set flash parameter AllowScriptAccess to 'sameDomain' instead 'always'

元气小坏坏 提交于 2020-01-05 09:04:28

问题


I am using prime faces jar in my web application. The prime faces jar contain utility.js file. I need to set flash parameter AllowScriptAccess value to 'sameDomain' instead 'always' in utility.js file. I am not interested to edit jar file manually.

It is challenging one. Anybody have idea about this let me know pls.


回答1:


Try to put a modified copy of that utility.js file in your resources folder an load it using the <f:facet name="last"> , that way your copy of the file should be loaded in the end and override the js file from the jar

<f:facet name="last">
     <!-- load css, js or others -->
</f:facet>

Take a look at this Resource ordering in PrimeFaces



来源:https://stackoverflow.com/questions/14017933/set-flash-parameter-allowscriptaccess-to-samedomain-instead-always

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!