$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "apiBaseUrl": "https://api.github.com",
< "paths": [
< "/",
< "/rate_limit"
< ],
< "expectedAllowOrigins": [
< "https://app.example.com"
< ],
< "expectedDenyOrigins": [
< "https://evil.example.com",
< "null",
< "http://attacker.example"
< ],
< "includeSubdomainProbe": true,
< "methods": [
< "GET",
< "POST",
< "PUT",
< "DELETE"
< ],
< "requestHeaders": [
< "authorization",
< "content-type"
< ],
< "authorizationStatement": "I own this API, or I am authorized to test it. The Actor sends only OPTIONS and GET requests.",
< "trackMatrix": true,
< "matrixKey": "",
< "timeoutSeconds": 15,
< "maxConcurrency": 5,
< "maxRequests": 900,
< "maxRedirects": 0
<}
<EOF
$curl "https://api.apify.com/v2/actors/kingii98~browser-api-cors-allowlist-and-credential-exposure-gate/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'