Chrome does not work D3.js

I know this is some kind of security issue when chrome doesn't run files that it doesn't trust, but does anyone know anyway to fix this problem?

Besides running my code on the server.

Thank.

+5
source share
1 answer

I assume that you are working with a local file. When launching Chrome, you can use the flag --allow-file-access-from-filesto load local JSON (for example) or --disable-web-securityto completely disable security mechanisms.

Please note that depending on your version of Chrome, these flags may or may not work.

+3
source

All Articles