Open stavhaygn opened 1 year ago
This PR fixes an issue in the addCorsMiddleware function where the if condition would never evaluate to true. The updated check ensures that the CORS middleware is applied only when the CORS_ALLOWED_ORIGINS environment variable is set and not empty.
addCorsMiddleware
CORS_ALLOWED_ORIGINS
This PR fixes an issue in the
addCorsMiddleware
function where the if condition would never evaluate to true. The updated check ensures that the CORS middleware is applied only when theCORS_ALLOWED_ORIGINS
environment variable is set and not empty.