dsShelfCorsApplyActual function

Response dsShelfCorsApplyActual(
  1. Response response,
  2. String origin
)

Applies CORS headers to a non-OPTIONS response using the given origin.

Implementation

Response dsShelfCorsApplyActual(Response response, String origin) {
  return response.change(headers: _buildActualHeaders(origin));
}