Skip to content

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

@Creativeguru97

Description

@Creativeguru97

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions