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

Console Errors when using this plugin on a wordpress site #22

Open
r-interactive opened this issue Jun 2, 2022 · 1 comment
Open

Console Errors when using this plugin on a wordpress site #22

r-interactive opened this issue Jun 2, 2022 · 1 comment

Comments

@r-interactive
Copy link

Hello,

It seems to be a great light-weight plugin that we would like to use, but when I follow the steps on getting it to work, it's giving me a lot of errors.
Please find the error messages below and a screenshot attached.
==============ERRORS=============
Access to XMLHttpRequest at 'https://www.nameshouts.com/api/names/naureenanwar' from origin 'https://XXXXX' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.

Uncaught SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse ()
at vocalizer.min.js?ver=20151215:1:681
at a.onerror (vocalizer.min.js?ver=20151215:1:467)

Failed to load resource: net::ERR_FAILED www.nameshouts.com/api/names/naureenanwar:1

==============ERRORS=============
Capture2

When I tried using this method:
Naureen Anwar
or just this simple name
John

this gives me the errors mentioned above. But when I tried this method (custom mp3 audio):

John

This works and plays the audio. This doesn't give me any errors.

How can I fix this?

Thank you!

@r-interactive
Copy link
Author

Just to add, I am using this js file https://github.com/atifazam/vocalizer/blob/master/dist/vocalizer.js

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

1 participant