@Henry Lam Thanks for reaching out.
The issue should be observed for the same function app across to all users and not to specific user that login to azure portal.
The warning message you are seeing indicates that the cross-origin resource sharing (CORS) policy for your Azure Function app needs to be updated to explicitly allow requests from https://portal.azure.com
.
Once you have updated the CORS policy, you should be able to test/run your function from the Azure portal without seeing the warning message.
- Open the Azure portal and navigate to your Function app.
- Under the "API" section, click on "CORS".
- In the "Allowed Origins" section, add
https://portal.azure.com
to the list of allowed origins.
Click "Save" to save your changes.
If you continue to experience issues, you may need to clear your browser cache or try using a different browser to see if that resolves the issue.
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.