修改跨站脚本攻击缺陷

This commit is contained in:
范强强
2024-03-21 10:30:42 +08:00
parent 1e064b79e9
commit 5e1c48dcd7
2 changed files with 18 additions and 2 deletions
+17 -1
View File
@@ -9,6 +9,23 @@
<!--<link rel="icon" href="<%= BASE_URL %>logo.png"> -->
<script src="<%= BASE_URL %>cdn/babel-polyfill/polyfill_7_2_5.js"></script>
<script src="<%= BASE_URL %>api_address_config.js"></script>
<!-- 全局配置 -->
<% if (process.env.NODE_ENV === 'development' ) { %>
<script>
window.CONFIG = {
//onlyoffice前端路由
'onlyOfficeRoute': 'http://127.0.0.1:8080',
};
</script>
<% } %>
<% if (process.env.NODE_ENV === 'production' ) { %>
<script>
window.CONFIG = {
//onlyoffice前端路由
'onlyOfficeRoute': 'http://127.0.0.1:8080',
};
</script>
<% } %>
<style>
html,
body,
@@ -280,7 +297,6 @@
overflow-x: auto !important;
}
</style>
<!-- 全局配置 -->
</head>
<body>