Setting X Frame Options on Weblogic

不羁岁月 提交于 2019-12-11 17:23:54

问题


I need to configure X- Frame Options for my Angular.js Application which runs on Weblogic Server but I can,t seem to find an example. My preference would be to do it in web.xml file similar to this example for Tomcat :

How do I set X-Frame-Options as response header in angularJS?


回答1:


We also faced the same issue. One of the approach is suggested by 'user1107888'. You don't have to create another project explicitly

the other approach is,

  1. Update the web.xml with the filter details.
  2. Add the tomcat and its dependent jars as a part of the external jars OR add it to the build script of the war file (if you are not using maven or gradle) OR directly add it to the classpath of weblogic classpath.
  3. In case you are using maven/gradle for your build, add them as dependency.

Hope this helps.



来源:https://stackoverflow.com/questions/49751934/setting-x-frame-options-on-weblogic

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