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

[Bug]: ERR_BLOCKED_BY_CLIENT #35

Open
torerik123 opened this issue Oct 16, 2023 · 3 comments
Open

[Bug]: ERR_BLOCKED_BY_CLIENT #35

torerik123 opened this issue Oct 16, 2023 · 3 comments

Comments

@torerik123
Copy link

torerik123 commented Oct 16, 2023

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
Copy link
Member

@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
Copy link
Author

@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
Copy link

lucascnunes commented Feb 28, 2024

@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.

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