Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Error in v-on handler: "SecurityError: An attempt was made to break through the security policy of the user agent." #355

Open
wty302857194 opened this issue Nov 15, 2023 · 3 comments

Comments

@wty302857194
Copy link

Error in v-on handler: "SecurityError: An attempt was made to break through the security policy of the user agent."

@SylvainLano
Copy link

I just had the same error !

In the console :
reactivity.esm-bundler.js:978 Uncaught DOMException: An attempt was made to break through the security policy of the user agent.
at isRef (webpack-internal:///./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js:950:20)
at MutableReactiveHandler.get (webpack-internal:///./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js:497:9)
at Object.get (webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:2749:24)
at eval (webpack-internal:///./node_modules/vue-social-sharing/dist/vue-social-sharing.js:1844:15)

On the page itself :
Uncaught runtime errors:
×
ERROR
An attempt was made to break through the security policy of the user agent.
at isRef (webpack-internal:///./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js:950:20)
at MutableReactiveHandler.get (webpack-internal:///./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js:497:9)
at Object.get (webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:2749:24)
at eval (webpack-internal:///./node_modules/vue-social-sharing/dist/vue-social-sharing.js:1844:15)

@SneyX
Copy link

SneyX commented Nov 30, 2023

did you guys were able to fix it?

@SylvainLano
Copy link

Nope, sorry, and there was no point on modifying the code, so I ended up creating my own social sharing options.
You can see them under the destination name here : https://sylvainlano.github.io/VoyageVue
If it can help, the code of the sharing component in Vue is there (to be adapted to your needs) : https://github.com/SylvainLano/VoyageVue/blob/master/src/components/SharingOptions.vue
It uses a JSON to register the list of social networks and the image to display for them with font-awesome if you're to use it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants