# Ebay EPN: Source map error

**URL:** <https://meta.discourse.org/t/ebay-epn-source-map-error/232770>\
**Category:** Development\
**Created:** [July 13, 2022, 6:44pm UTC](https://meta.discourse.org/t/ebay-epn-source-map-error/232770 "2022-07-13T18:44:17Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![piffy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/piffy/32/254198_2.png) [@piffy](https://meta.discourse.org/u/piffy)\
**Post date:** [July 13, 2022, 6:44pm UTC](https://meta.discourse.org/t/ebay-epn-source-map-error/232770/1 "2022-07-13T18:44:17Z")

</div>

The Ebay affiliate program provides a script that converts links on the clientside. It’s a simple two-line thing:

`<script>window._epn = {campaign: [XXX_ID_XXX], smartPopover:false};</script>`  
`<script src="https://epnt.ebay.com/static/epn-smart-tools.js"></script>`

I realize I can’t simply add these two lines for security reasons. There’s a bit of a discussion here [EPN Smart Links](https://meta.discourse.org/t/epn-smart-links/116293)

I have created a very simple theme component and placed the code in the common/head\_tag.html file:

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/a/3/ca347658084be3a3b0ca11079e788fd96ede7a82.png)

The id is specified on the component page and the console logs the correct id. However, it does not appear to update any URLs.

I have added this [epn-smart-tools.js](https://epnt.ebay.com/static/epn-smart-tools.js) as a content security policy exception. In the brower console I get this warning though:  
 ![image](https://global.discourse-cdn.com/meta/original/4X/e/5/8/e58528244438493089a84976f9299225b273d126.png)

It looks like this “from-url.js.map” referenced in the epn-smart-tools.js is the problem. I wrote a simple html file on my desktop and ran it locally and there doesn’t seem to be an issue - leading me to believe it’s more likely a issue on the discourse end than from my browser.

What these source maps do and how discourse interacts with them are outside the limits of my knowledge. Any advice here? Am I overlooking something?

---

_[View the full topic](https://meta.discourse.org/t/ebay-epn-source-map-error/232770)._
