The CSP directive "script-src 'self'" specifies that the website is only allowed to load scripts from its own domain. Since the 'script-src-elem' directive was not explicitly set, the 'script-src' directive is used as a fallback. In this case, the website is not allowed to load scr...
Refused to load the script 'http://118.26.161.68:9527/start/layui/layui.js' because it violates the following Content Security Policy directive: "default-src https: data: 'unsafe-inline' 'unsafe-eval'". Note that 'script-src-elem' was not explicitly set, so 'default-src' is used as ...
<script src="https://cdn.bootcss.com/jquery/1.11.0/jquery.min.js"></script> <script src="//cdn.bootcss.com/vue/2.2.2/vue.min.js"></script> <script src='//cdn.bootcss.com/mint-ui/2.2.3/index.js'></script> 1. 2. 3. index.js import $ from 'jquery' 1. webpack.config....
elem.src = 'http:///jsonp?callback=foo'; document.head.appendChild(elem); } </script> </body> 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 用JSONP,浏览器会自动在request header里面带上下的cookie信息。 其实,通过src调用api都是GET方式,类似请求资源文件,必须明确,从Web页面...
[ ! -d ${SRC_DIR}$SOCK ] && mkdir -p ${INSTALL_DIR}/$SOCK if [ $(id -u) != "0" ]; then echo "Error: you must be root to run this script!" exit 1 fi ##颜色输出函数 red_echo(){ local what=$* echo -e "\e[1;31m *** \e[0m" echo -e "\e[1;31m ${what...
Nginx提供了目录映射功能,也就是Nginx autoindex模块,前置以来:ngx_http_autoindex_module模块,通常的编译都有这个模块。使用这个模块,可以轻松把本地(服务器)上的目录映射到网站目录下。 主要应用于下载、提供文件直链。如:腾讯软件源 腾讯软件源下AndroidSDK ...
echo "ipset create whitelist-china hash:net hashsize 10000 maxelem 1000000" > /etc/ip-black.sh for i in $( cat china_ip.txt ) do echo "ipset add whitelist-china $i" >> /etc/ip-black.sh done echo "iptables -I INPUT -m set --match-set whitelist-china src -j ACCEPT" >> /etc...
static文件夹的区别 区别一:assets文件是src下的,所以最后运行时需要进行打包,而static文件不需要打包就直接放在最终的文件中了 区别二:assets中的文件在vue中的template/style下用../这种相对路径的形式进行引用,在script下必须用@import的方式引入而static下的文件在.vue中的任何地方都只要使用../这种相对路径的方式...
<#include '/adminPage/script.html'/> <#include '/adminPage/select_mail.html'/> <#include '/adminPage/select_preview.html'/> 16 changes: 14 additions & 2 deletions 16 src/main/resources/WEB-INF/view/adminPage/server/index.html Original file line numberDiff line numberDiff line change ...
85 changes: 37 additions & 48 deletions 85 frontend/src/views/nginx_log/NginxLog.vue Original file line numberDiff line numberDiff line change @@ -1,31 +1,35 @@ <script setup lang="ts"> import {useGettext} from 'vue3-gettext' import ws from '@/lib/websocket' import {computed, ne...