问题
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,
- Update the web.xml with the filter details.
- 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.
- 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