OneSignal / onesignal-vue3

Vue 3 OneSignal Plugin: Make it easy to integrate OneSignal with your Vue App!
Other
19 stars 5 forks source link

[Bug]: ERR_BLOCKED_BY_CLIENT #35

Open torerik123 opened 1 year ago

torerik123 commented 1 year ago

What happened?

I'm trying to setup OneSignal with Nuxt 3, but can't get it to work. I get ERR_BLOCKED_BY_CLIENT in both Brave and Chrome. Is there a way around this?

What browsers are you seeing the problem on?

Chrome (Chromium), Brave

What operating system are you running?

macOS 10.15.7

Steps to reproduce?

import { useOneSignal } from '@onesignal/onesignal-vue3'

setup() {
const Onesignal = useOneSignal().init({
    appId: '[appID]'    
})
}

What did you expect to happen?

.......

Relevant log output

index.ts:36 GET https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.js net::ERR_BLOCKED_BY_CLIENT

jkasten2 commented 1 year ago

@torerik123 Brave has an ad blocker on by default which is known to block the OneSignal Website SDK.

Are you also using an ad blocker on Chrome? Can you try disabling it?

torerik123 commented 1 year ago

@torerik123 Brave has an ad blocker on by default which is known to block the OneSignal Website SDK.

Are you also using an ad blocker on Chrome? Can you try disabling it?

Not using any adblockers. Same issue in Chrome.

lucascnunes commented 9 months ago

@torerik123 Are you on localhost? I was having this same problem in localhost, but the thing is that OneSignal only identifies as a local host if you're using a localhost url, I was using a .test url and it was giving this same error, when I went back to localhost:8000 it worked like a charm.