I'm referencing an external JS file with a src html tag, why am I getting a "Java script not allowed" error?
The chances are, you will have a tag that is similar to this.
<HTMLTag>
<script type="text/javascript" src="http://www.domain.com/scripts/somescript.js"></script>
</HTMLTag>
The reference to the external file is not allowed as per our HTML and JavaScript policy.
src="http://www.domain.com/scripts/somescript.js" will throw the error
<ShortMessage>Java script not allowed.</ShortMessage>
<LongMessage>Your listing cannot contain javascript (".cookie", "cookie(", "replace(", IFRAME, META, or includes), cookies or base href.</LongMessage>
<ErrorCode>353</ErrorCode>
For additional information about eBay's javascript policies and guidelines, please visit
http://pages.ebay.com/help/policies/listing-javascript.html#what
How well did this answer your question?
Thank you for helping us to improve the eBay developer program.
While we are not able to respond directly to your comments, we will carefully review them to improve your experience with eBay developer program!