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

DOMException: The operation is insecure (pushover) #121

Open
naufdotal opened this issue Jan 6, 2021 · 2 comments
Open

DOMException: The operation is insecure (pushover) #121

naufdotal opened this issue Jan 6, 2021 · 2 comments

Comments

@naufdotal
Copy link

naufdotal commented Jan 6, 2021

Hello,
i have added a pushover API in config.js and service run successfully without a problem (schnack in docker).
But after i allowed send notification permission when i access my ghost blog and make 2 comments with my twitter and github, its just nothing. No notification made.

404 not found sw.js in my comment-subdomain web -> komentar.nauf.al/sw.js

and i got error on console of my web browser.
image

when i browse google, i got this DOMException: The operation is insecure. which is i should add header("Service-Worker-Allowed: https://www.yoursite.com/"); and scope in push.js? is that right?

where should i put it the Service-Worker-Allowed thing?
or can you help me to make sure the notifications run in my browser? Thank you

@pandelig
Copy link

Hello, did you manage to make any progress regarding the DOMException?
i have a similar issue but for the embed.js script instead

@bedwardly-down
Copy link

I know this is late but I’m running into a similar issue as both of y’all. What I’m finding so far is that if your url in the config doesn’t match the url of whatever site you’re embedding in (like if you’re running through localhost and a port without reverse proxying out), this exception will show up. I’m not sure how to fix it yet but my guess is it’s related to CORS somehow just not showing the proper error message.

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