chris.happy.dad
10/21/2024, 3:01 AMAccess to fetch at 'https://api.vapi.ai/call/web' from origin 'https://*****.lambda-url.us-east-1.on.aws' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I have been using and testing our assistant with public keys for the last 2 weeks with no problems.
Today I added some custom assistant properties
vapiInstance = window.vapiSDK.run({
apiKey: apiKey,
assistant: assistantID,
config: buttonConfig,
assistantOverrides: {
name: 'Custom Assistant Name', // works
variableValues: {
"name": "John",
}
});
It worked with assistantOverrides -> name
But when I added assistantOverrides -> variableValues then it started the CORS errors.
When I remove the code for assistantOverrides I still get the CORS errors. I am not sure how it could be related, but that is what I changed on my end.
I have tried creating a new assistant and a new public-key with no access options and tried making one with my AWS Lambda function as the allowed access. Neither work any more, I get the above error
Please help, this is quite urgent
ChrisVapi
10/21/2024, 3:03 AMchris.happy.dad
10/21/2024, 4:57 AMchris.happy.dad
10/21/2024, 5:23 AMchris.happy.dad
10/22/2024, 12:34 PM