Hello, I’m trying to test the API to create a simple workflow.
The process I do is:
I sign up at Edge Impulse and get the API Key of my user.
I go to the Edge Impulse Docs and i create a JWT Token successfully with my API Key.
To test that the JWT token works good I go to Get current user API call here and I introduce my JWT token as cookie and when i run it I go an infinite loop into the docs.
Opening the Browser console I can see the error:
Access to fetch at 'https://try.readme.io/https://studio.edgeimpulse.com/v1/api/user' from origin 'https://docs.edgeimpulse.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.
The docs for all of the User API calls say that “This function is only available through a JWT token.” Was there another place you recommend it being listed?
From what I understand, the API keys are project-specific, so creating a request to, say, get user, with that key likely won’t work. Can you provide a screenshot of the infinite loop? I just tried that page, and I get a a regular error.