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

TykTechnologies / tyk / 3183
46%
master: %

Build:
Build:
LAST BUILD BRANCH: v2.9.4.8
DEFAULT BRANCH: master
Ran 06 Oct 2017 11:20AM UTC
Jobs 1
Files 84
Run time 5s
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

pending completion
3183

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

Jobs
ID Job ID Ran Files Coverage
2 3183.2 (LATEST_GO=true) 06 Oct 2017 11:20AM UTC 0
46.15
Travis Job 3183.2
Source Files on build 3183
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3183
  • 6a9a3e81 on github
  • Next Build on missing_cors_invalid_token (#3192)
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

© 2025 Coveralls, Inc