Project

General

Profile

Task #3661

Allowed origins should be based on getenv(allowed_origins)

Added by Ram Kordale 5 months ago. Updated 5 months ago.

Status:
Review
Priority:
High
Assignee:
Start date:
07/13/2024
Due date:
% Done:

100%

Estimated time:
0.40 h

Description

Today, get_allowed_origins is hardcoded to rapidken.ai or * based on the env. Sometimes, we will need gcf to be accessed by another set of hosts. To allow this, check getenv(allowed_origins). if it is non-empty, set allowed origins in rk2_gcf based on it (which provides a comma separated list of hosts).

Also available in: Atom PDF