Commit 89e646ef authored by 邓晓峰's avatar 邓晓峰

fix: 修复 template XSS

parent ce664535
Pipeline #48975 passed with stages
in 2 minutes 30 seconds
......@@ -135,20 +135,20 @@ 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;
},
// async fetch(url, ...args) {
// if (url.indexOf('/cookie/flash.js') > -1) {
// return {
// async text() {
// return '';
// },
// };
// }
// return window.fetch(url, ...args);
// getTemplate(tpl){
// tpl = tpl.replace('<script src="http://18.10.10.253:89/cookie/flash.js"><script>', '');
// return tpl;
// },
async fetch(url, ...args) {
if (url.indexOf('/cookie/flash.js') > -1) {
return {
async text() {
return '';
},
};
}
return window.fetch(url, ...args);
},
// eslint-disable-next-line no-underscore-dangle
// getPublicPath: window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__,
excludeAssetFilter: url =>
......
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