Next.js: Add crossorigin attribute to NextScript

Created on 29 Jan 2018  路  1Comment  路  Source: vercel/next.js

I'm using assetPrefix to serve my javascripts from a different domain. I need to add crossorigin="anonymous" attribute to these script tags in NextScript for error tracking. Otherwise, error details will not provided because of security reason.

I read the source code, seems no way to do that with next.config.js.

feature request

Most helpful comment

Along with this, SRI support would be nice.

>All comments

Along with this, SRI support would be nice.

Was this page helpful?
0 / 5 - 0 ratings