Skip to content

Commit

Permalink
Link directly to w3 sections in comments for cors filter (envoyproxy#…
Browse files Browse the repository at this point in the history
…4875)

Signed-off-by: Derek Schaller <[email protected]>
  • Loading branch information
dschaller authored and mattklein123 committed Oct 27, 2018
1 parent 0b2e9f5 commit 0599378
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/extensions/filters/http/cors/cors_filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ namespace Cors {

CorsFilter::CorsFilter() : policies_({{nullptr, nullptr}}), is_cors_request_(false) {}

// This handles the CORS preflight request as described in #6.2
// https://www.w3.org/TR/cors/
// This handles the CORS preflight request as described in
// https://www.w3.org/TR/cors/#resource-preflight-requests
Http::FilterHeadersStatus CorsFilter::decodeHeaders(Http::HeaderMap& headers, bool) {
if (decoder_callbacks_->route() == nullptr ||
decoder_callbacks_->route()->routeEntry() == nullptr) {
Expand Down Expand Up @@ -79,8 +79,8 @@ Http::FilterHeadersStatus CorsFilter::decodeHeaders(Http::HeaderMap& headers, bo
return Http::FilterHeadersStatus::StopIteration;
}

// This handles simple CORS requests as described in #6.1
// https://www.w3.org/TR/cors/
// This handles simple CORS requests as described in
// https://www.w3.org/TR/cors/#resource-requests
Http::FilterHeadersStatus CorsFilter::encodeHeaders(Http::HeaderMap& headers, bool) {
if (!is_cors_request_) {
return Http::FilterHeadersStatus::Continue;
Expand Down

0 comments on commit 0599378

Please sign in to comment.