tests for different conditions
Return empty summary if no match
Add CORS header