adverse-sapphire
adverse-sapphire16mo ago

Voiceflow CORS error - Unable to Run Block

Today when I try to run Voiceflow block, it just get stuck and won't go to next step. It is a simple set variable block, works well yesterday. When I open console, there show CORS error for Voiceflow: Access to XMLHttpRequest at 'https://general-runtime.voiceflow.com/interact/66455d09a3dc10887217c907' from origin 'https://creator.voiceflow.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Please help, urgent.
No description
2 Replies
Tico | Voiceflow Assistant
It sounds like you're encountering a CORS (Cross-Origin Resource Sharing) error when trying to run a block in Voiceflow. This issue can prevent your blocks from executing correctly. Here are some steps you can take to troubleshoot and resolve this issue: 1. Check Your Browser Console: The console error message should provide more details about the CORS issue. Look for any specific URLs or resources that are being blocked. 2. Verify API Endpoints: Ensure that the API endpoints you are using in your Voiceflow project are correctly configured to allow cross-origin requests. This typically involves setting the appropriate CORS headers on the server side. 3. Update Voiceflow Project: Sometimes, simply updating your project can resolve temporary issues. Click the "Publish" or "Run" button from the canvas to ensure all updates are reflected. 4. Browser Cache: Clear your browser cache and cookies. Sometimes, cached data can cause issues with CORS policies. 5. Server Configuration: If you have control over the server you're making requests to, ensure that it includes the necessary CORS headers. For example:
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE
Access-Control-Allow-Headers: Content-Type

Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE
Access-Control-Allow-Headers: Content-Type

6. Use a Proxy: If you don't have control over the server, you can use a proxy server to handle the requests and add the necessary CORS headers. If the issue persists, you might want to review the specific steps and configurations in your Voiceflow project to ensure everything is set up correctly. Here are some relevant links that might help: - Voiceflow Developer Documentation - Voiceflow Knowledge Base These resources provide detailed information on configuring and troubleshooting your Voiceflow projects.
adverse-sapphire
adverse-sapphireOP16mo ago
I have tried clear cache and hard reload, open in new tab and still getting same issue. The CORS error belongs to Voiceflow..

Did you find this page helpful?