-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
RegEx to match the current deployment
rm_base = "https://replaceme.example.org" # FIXME read url from manifest
deployment_domain_regex = rm_base.replace(".", r"\.").replace("https://", r"https://(.*\.)?")
LOGGER.info("deployment_domain_regex={}".format(deployment_domain_regex))
app = FastAPI(docs_url="/api/docs", openapi_url="/api/openapi.json", version=__version__)
app.add_middleware(
CORSMiddleware,
allow_origin_regex=deployment_domain_regex,
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request