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

{"readyState":0,"status":0,"statusText":"error"} even though I put my api key and api secret. #10

Open
Creativeguru97 opened this issue Dec 12, 2020 · 0 comments

Comments

@Creativeguru97
Copy link

Creativeguru97 commented Dec 12, 2020

HI, I registered and got my free version of api key and api secret.

I followed this read me and tried the face detection. But even though I put my api key and api secret at line4 and 5 in the common.js, the demo doesn't work with my upload photo.

I always got error says
[Error] Origin http://127.0.0.1:3000 is not allowed by Access-Control-Allow-Origin.
[Error] XMLHttpRequest cannot load https://api-cn.faceplusplus.com/facepp/v3/detect due to access control checks.
[Error] Failed to load resource: Origin http://127.0.0.1:3000 is not allowed by Access-Control-Allow-Origin. (detect, line 0)

or just output function failed()

Is this because my plan is free type? Or I missed something else?
Thanks in advance:))

Screen Shot 2020-12-12 at 23 52 05

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