Skip to content

security: improve readability of CORS handling

Administrator requested to merge sg/public-api-refactor into main

Created by: slimsag

The code under this if conditional would previously run if any corsOrigin was configured in the site configuration (corsOrigin != ""), and so effectively it always runs. The conditional is not needed and makes the code obtuse.

Signed-off-by: Stephen Gutekanst [email protected]

Merge request reports

Loading