• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TykTechnologies / tyk / 3183 / 2
46%
master: %

Build:
Build:
LAST BUILD BRANCH: v2.9.4.8
DEFAULT BRANCH: master
Ran 06 Oct 2017 11:20AM UTC
Files 84
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Oct 2017 11:07AM UTC coverage: 46.149%. First build
LATEST_GO=true

push

travis-ci

MangoMM
Ignore CORS middleware when OptionsPassthrough on

Resolves #757

When `CORS.options_passthrough` is set to true, before, the CORS
middleware would write it's own CORS headers, meaning that both the
upstreams headers and the CORS headers were returned in OPTIONS requests.

Before Passthrough On:
```
curl -X OPTIONS   http://127.0.0.1:8080/cors-auth/post   -H
'access-control-request-method: POST'   -H 'authorization:
453ec0823db443dd9a8fb6d234917e3d'   -H 'origin: abc.com' -I
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: POST
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH, OPTIONS
Access-Control-Allow-Origin: abc.com
Access-Control-Allow-Origin: abc.com
Access-Control-Max-Age: 24
Access-Control-Max-Age: 3600
Allow: POST, OPTIONS
Content-Length: 0
Content-Type: text/html; charset=utf-8
Date: Fri, 06 Oct 2017 11:13:29 GMT
Server: meinheld/0.6.1
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Via: 1.1 vegur
X-Powered-By: Flask
X-Processed-Time: 0.000757932662964
X-Ratelimit-Limit: 0
X-Ratelimit-Remaining: 0
X-Ratelimit-Reset: 0
```

After Passthrough On:
```
$ curl -X OPTIONS   http://127.0.0.1:8080/cors-auth/post   -H
'access-control-request-method: POST'   -H 'authorization:
453ec0823db443dd9a8fb6d234917e3d'   -H 'origin: abc.com' -I
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH, OPTIONS
Access-Control-Allow-Origin: abc.com
Access-Control-Max-Age: 3600
Allow: POST, OPTIONS
Content-Length: 0
Content-Type: text/html; charset=utf-8
Date: Fri, 06 Oct 2017 11:14:38 GMT
Server: meinheld/0.6.1
Via: 1.1 vegur
X-Powered-By: Flask
X-Processed-Time: 0.000485897064209
X-Ratelimit-Limit: 0
X-Ratelimit-Remaining: 0
X-Ratelimit-Reset: 0
```

6141 of 13307 relevant lines covered (46.15%)

0.5 hits per line

Source Files on job 3183.2 (LATEST_GO=true)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3183
  • Travis Job 3183.2
  • 6a9a3e81 on github
  • Next Job for LATEST_GO=true on missing_cors_invalid_token (#3192.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc