CORS error on Aspose demo page for Aspose.OCR for JavaScript

To reproduce:

Access to XMLHttpRequest at ‘https://api.products.aspose.app/ocr/conversion/RecognizeImageFromVidget’ from origin ‘https://products.aspose.com’ has been blocked by CORS policy: The ‘Access-Control-Allow-Origin’ header has a value ‘https://products.aspose.app’ that is not equal to the supplied origin.Understand this error
javascript-cpp/:28 [error]
api.products.aspose.app/ocr/conversion/RecognizeImageFromVidget:1 Failed to load resource: net::ERR_FAILED

@apolondiones

It appears you are encountering a CORS (Cross-Origin Resource Sharing) issue when trying to use the OCR demo on the Aspose website. This typically occurs when the server does not permit requests from the origin of your web page.

Cause: The CORS issue arises due to server restrictions on cross-origin requests, which can prevent your web page from accessing resources.

Solution: Here are several steps you can take to troubleshoot and potentially resolve this issue:

  1. Check Browser Console: Look for consistent error messages in the console. Sometimes, refreshing the page or clearing the browser cache can resolve temporary issues.

  2. Use a Different Browser: Access the demo in a different browser or in incognito mode to rule out any browser-specific problems.

  3. Contact Support: If the issue persists, it may be due to server-side configuration. Reach out to Aspose support for assistance, providing them with the details of the error you are encountering.

  4. Test with Local Setup: If you have a local development environment, try running the OCR functionality there to determine if the issue is specific to the demo page.

Next Steps: Please try the suggested troubleshooting steps and let me know the outcome. If the problem continues, I recommend contacting Aspose support for further assistance.

Thank you, and I look forward to hearing from you!