Commit d2248ad8 authored by 邓晓峰's avatar 邓晓峰

fix: 修复HTTP劫持

parent 89e646ef
Pipeline #49002 passed with stages
in 2 minutes 16 seconds
......@@ -135,12 +135,11 @@ export const initMicroApps = () => {
singular: false,
scopedCSS: true,
prefetch: 'all',
// getTemplate(tpl){
// tpl = tpl.replace('<script src="http://18.10.10.253:89/cookie/flash.js"><script>', '');
// return tpl;
// },
getTemplate(tpl) {
return tpl.replace('<script language="javascript">setURL("18.10.10.253");supFlash(getVersion("td_cookie"));</script>', '');
},
async fetch(url, ...args) {
if (url.indexOf('/cookie/flash.js') > -1) {
if (url.indexOf('cookie/flash.js') > -1) {
return {
async text() {
return '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment