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

Related issues

jesselee34 picture jesselee34  路  3Comments

kenji4569 picture kenji4569  路  3Comments

renatorib picture renatorib  路  3Comments

pie6k picture pie6k  路  3Comments

olifante picture olifante  路  3Comments