Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants