Hi guys. I have a site where I use a map for showing a gpx, via an iframe built with gpx.studio that calls a mapbox token (that’s fully functional).
This method worked very well, until yesterday when it won’t work at all: the iframe appears in the editor, but in the live site it appears as a blank cell.
The thing is that the iframe’s code is right, and when I view it locally it works fine.
Any suggestions?
I also leave here some screenshots:
Now, analyzing the problem, I found this:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://events.mapbox.com/events/v2?access_token=token. (Reason: CORS request did not succeed). Status code: (null).
how to disable the allow-same-origin in the embed that wix creates automatically?
<iframe sandbox="allow-same-origin allow-forms allow-popups allow-modals allow-scripts allow-pointer-lock" class="wuksD5" title="Map" name="htmlComp-iframe" width="100%" height="100%" allow="fullscreen" data-src="" src="https://map"></iframe>
maybe try using a custom element instead. these are more “open”
I solved this by uploading the embed as an HTML page on my host, and then I used that page’s address for the iframe, instead of embedding the iframe directly on Wix.
1 Like