Workerly Auth Method?

Workerly Auth Method?

Please help. I'm trying to set up a webpage to test accessing a list of Jobs that I have listed in Workerly.

I've used the following code to get an auth code, but I'm getting an error "Access to fetch at 'xxx' from origin 'xxxx' has been blocked by COPS policy"

I've set up access in Workerly, got my client Id, secret id and put the url in for the response.


    .then(res => res.json())
    .then((out) => {
        console.log('Output: ', out);
}).catch(err => console.error(err));

I've contacted support who have told be that I'm not getting the auth code - but that's what I'm trying to achieve with the above code.  Please has anyone got example javascript or php code that should work???