Unable to add CORS exception from the 'click here' link

David Lindon 0 Reputation points
2023-11-02T15:51:44.0466667+00:00

It is not possible to use the 'test/run' link without adding a CORS exception. Clicking the 'click here to add' doesn't work. I've tried in Edge and Firefox. It appears to trigger the request in the screenshot.User's image

User's image

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
{count} votes

1 answer

Sort by: Most helpful
  1. navba-MSFT 27,605 Reputation points Microsoft Employee Moderator
    2023-11-03T03:15:24.6966667+00:00

    @David Lindon Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    I understand that you are having trouble adding a CORS exception from the Click Here link under the Test/Run section under the Azure Function App.

    I am tried to reproduce the issue at my end.

    User's image

    However, while I tried to click on click here link it worked fine and it is able to add the CORS rule for me. See below:

    User's image

    I have tested on various browsers like Edge, Firefox and Chrome. And the Click Here button works fine as expected.

    Workaround:
    Navigate to the CORS section within the Azure Function App portal blade and add the https://portal.azure.comand then click on Save button. Then test the functionality again.

    User's image

    Hope this helps.

    If you have any follow-up questions, please let me know. I would be happy to help.

    **
    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.