How this template works
APIs Selection
The API selection filters in this template specify that the response code should be greater than or equal to 200 and less than 300. This means that only successful responses (status codes in the 2xx range) will be considered for further processing.
Execute request
The execute section of the template defines a single request to be executed. In this case, the request includes an additional header called "origin" with the value "`evil.com". This is used to simulate a request with an invalid origin value.
Validation
The validation section specifies the criteria for validating the response. It checks that the response code is within the expected range (200-299) and that the response headers contain either the "access-control-allow-origin" header with a value containing "`evil.com" or the "access-control-allow-credentials" header with a value containing "true". If any of these conditions are met, the validation will pass.