Azure / Azure/azure-functions-docker

CORS: Missing Documentation

Open
#1,079 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Dockerfile
Stars
280
Forks
126
PR merge metrics
No merged PRs in 30d

Description

I had trouble getting my http triggered functions running in Docker environment due to problems with CORS. After spending lots of time on the problem, I found this https://github.com/Azure/azure-functions-host/issues/5090#issuecomment-1019691073

Now it works when setting env vars `CONTAINER_NAME` with non-empty string and `CORS_ALLOWED_ORIGINS` with json array, eg. `CORS_ALLOWED_ORIGINS="[\"*\"]"`.

The docs don't mention this on https://learn.microsoft.com/en-us/azure/azure-functions/functions-how-to-custom-container?tabs=core-tools%2Cacr%2Cazure-cli2%2Cazure-cli&pivots=azure-functions

Can you add this to the documentation page, please?

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.