@SangeethaP Thanks for reaching out.
For your first error. This error message indicates that there is a collision for Host ID 'functionAppName' in the configured storage account. This error usually occurs when you have the same host ID assigned to multiple function apps or slots, which also share the same storage account.
To resolve this issue, you can try the following options:
- Connect each function app or slot in the collision to a different storage account by changing the AzureWebJobsStorage application setting or slot setting. You need to the application setting of your function app. For more details, please refer to this document on how to configure any application setting.
- Rename your function apps to a name that has fewer than 32 characters. When app names have fewer than 32 characters, unique host IDs can be generated for each app, which removes the collision.
For your second error you need to configure the CORS and you can navigate to your function app and under the API section you will see the CORS option. Please add the URL for which you are getting the error and click on Save.
Feel free to get back to me if you need any assistance.
Please "Accept Answer" if the answer is helpful so that it can help others in the community.