Azure / Azure/static-web-apps

Can't access external Function App after it was linked and unlinked from the Static Web App

Open
#512 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

The Function App could not be accessed (return 401 Unauthorized) after it was linked and even after unlinked to my Static Web App. I have checked the setting of the Function App after unlink and found out that the authentication setting hasn't been cleared. I have tried to clear the setting manually but the issue is not resolved.

**To Reproduce**
Steps to reproduce the behavior:
1. Create a new Function App
2. Deploy and access the HTTP trigger function using the Function App's URL. The function can now be accessed normally using the Function App's URL
3. Link the Function App to the Static Web App. Now the original Function App's URL can't be accessed which is expected but the API can't also be access from the /api/... which is not expected (the api_location field in the Github's Action config file has been cleared to empty string)
4. Unlink the Function App
5. The Function App still couldn't be accessed using the Function App's URL

**Expected behavior**
1. Function App should be accessible using /api/...
2. Function App should be accessible again after being unlinked from the Static Web App

**Screenshots**
If applicable, add screenshots to help explain your problem.

![Screen Shot 2564-07-17 at 15 17 03](https://user-images.githubusercontent.com/2668437/126030891-29939fb0-b6ad-4c04-8caf-647ffeb07469.png)

**Device info (if applicable):**
N/A

**Additional context**
N/A

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.