简体   繁体   中英

Loading remote Javascript file in Google Chrome extension

I am new to developing google chrome extension and I have a problem that I hope someone can help me with.

I have developed a simple google chrome extension that injects a script tag (eg. ) into the DOM and loading an external JS.

I have tested it and it actually works. However, when I send it for approval, Google keeps on rejecting without giving proper reason.

I suspect it could be because I am loading an external JS script. Is there a workaround for this?

There could be a number of reasons for this. You should check your email for a more detailed explanation from the Chrome Team. You can reply to this rejection email with an explanation of your external file and what it does, however this does not guarantee it will pass inspection. On a similar note, if the external script file is not being served from the verified domain associated with the extension/application it may automatically fail.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM