Attempt To Load Url Xslt: Chrome Unsafe

<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="data:text/xsl,<xsl:stylesheet%20version='1.0'%20xmlns:xsl='http://www.w3.org/1999/XSL/Transform'><xsl:template%20match='/'>...</xsl:template></xsl:stylesheet>"?> File structure:

# Windows chrome.exe --disable-web-security --user-data-dir="C:/chrome_dev" open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev" --disable-web-security Linux google-chrome --disable-web-security --user-data-dir="/tmp/chrome_dev" Solution 4: Enable CORS on Your Server If you control the server hosting the XSLT file, add CORS headers. chrome unsafe attempt to load url xslt

# Python 3 python -m http.server 8000 python -m SimpleHTTPServer 8000 ?xml-stylesheet type="text/xsl" href="data:text/xsl

app.use((req, res, next) => res.header("Access-Control-Allow-Origin", "*"); next(); ); Embed the XSLT as a data URI: chrome unsafe attempt to load url xslt

add_header Access-Control-Allow-Origin *;