'API service returns 500

I have API and does the following task

  1. Read the file from blob (large file)
  2. Process it

For small file, requests pass successfully, But when the blob is large (that means processing time will be higher) I am getting the following error from azure app service

Error from Azure app Request Method: POST Status Code: 500 Referrer Policy: strict-origin-when-cross-origin

Access to XMLHttpRequest at '{apiurl}' from origin '{originurl}' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

But when tried from Postman and I am getting the following error.

Error from Postman 500 - The request timed out. The web server failed to respond within the specified time.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source