将 flash 参数 AllowScriptAccess 设置为“sameDomain"而不是“always" [英] Set flash parameter AllowScriptAccess to 'sameDomain' instead 'always'

查看:39
本文介绍了将 flash 参数 AllowScriptAccess 设置为“sameDomain"而不是“always"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的 Web 应用程序中使用了 Prime Faces jar.素面 jar 包含 utility.js 文件.我需要在 utility.js 文件中将 flash 参数 AllowScriptAccess 值设置为 'sameDomain' 而不是 'always'.我对手动编辑 jar 文件不感兴趣.

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.

推荐答案

尝试将该 utility.js 文件的修改副本放入您的资源文件夹中,并使用 <f:facet name="last"> ,这样你的文件副本应该在最后加载并覆盖 jar 中的 js 文件

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>

看看这个 PrimeFaces 中的资源排序

这篇关于将 flash 参数 AllowScriptAccess 设置为“sameDomain"而不是“always"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆