OSDOCS-21849: Documented the CORS filter in Gateway API docs - #119213
OSDOCS-21849: Documented the CORS filter in Gateway API docs#119213dfitzmau wants to merge 1 commit into
Conversation
|
@dfitzmau: This pull request references OSDOCS-21849 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target either version "5.1.0." or "openshift-5.1.0.", but it targets "openshift-5.0" instead. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
🤖 Thu Sep 03 15:17:59 - Prow CI generated the docs preview: |
9419275 to
960babc
Compare
|
i'll take a look from a NID Team side |
gcs278
left a comment
There was a problem hiding this comment.
Generally no issue from me, just two nits.
Content looks good.
| Available on {SMProductName}, this extended filter modifies an HTTP request’s hostname, path, or both. It may not be used in combination with the requestRedirect filter. However, the path semantics for requestRedirect can also be used for urlRewrite, i.e. (type: replaceFullPath | replacePrefixMatch, string values for replaceFullPath or replacePrefixMatch). | ||
|
|
||
| `cors`:: | ||
| Available on {SMProductName} and this extended filter configures Cross-Origin Resource Sharing (CORS). CORS lets a browser permit a web application from one origin to access resources from a different origin. Use a CORS filter when a browser-based application needs to request resources from a different origin. The gateway applies the policy and answers preflight requests directly, so your backend services do not have to implement CORS themselves. Fields include `allowOrigins`, `allowMethods`, `allowHeaders`, `exposeHeaders`, `allowCredentials`, and `maxAge`. For information, see "Cross-Origin Resource Sharing". |
There was a problem hiding this comment.
just fyi, the backticks are fine with me, but there is inconsistency in the docs, urlRewrite above lists various fields like requestRedirect, or replaceFullPath without ``. It's Doc's team call on how you want to format, it seems to me that backticks are preferred when talking about a field name.
Feel free to handle as a follow up fix if you think it's worth it.
| Available on {SMProductName}, this extended filter modifies an HTTP request’s hostname, path, or both. It may not be used in combination with the requestRedirect filter. However, the path semantics for requestRedirect can also be used for urlRewrite, i.e. (type: replaceFullPath | replacePrefixMatch, string values for replaceFullPath or replacePrefixMatch). | ||
|
|
||
| `cors`:: | ||
| Available on {SMProductName} and this extended filter configures Cross-Origin Resource Sharing (CORS). CORS lets a browser permit a web application from one origin to access resources from a different origin. Use a CORS filter when a browser-based application needs to request resources from a different origin. The gateway applies the policy and answers preflight requests directly, so your backend services do not have to implement CORS themselves. Fields include `allowOrigins`, `allowMethods`, `allowHeaders`, `exposeHeaders`, `allowCredentials`, and `maxAge`. For information, see "Cross-Origin Resource Sharing". |
There was a problem hiding this comment.
I think this is a typo?
| Available on {SMProductName} and this extended filter configures Cross-Origin Resource Sharing (CORS). CORS lets a browser permit a web application from one origin to access resources from a different origin. Use a CORS filter when a browser-based application needs to request resources from a different origin. The gateway applies the policy and answers preflight requests directly, so your backend services do not have to implement CORS themselves. Fields include `allowOrigins`, `allowMethods`, `allowHeaders`, `exposeHeaders`, `allowCredentials`, and `maxAge`. For information, see "Cross-Origin Resource Sharing". | |
| Available on {SMProductName}, this extended filter configures Cross-Origin Resource Sharing (CORS). CORS lets a browser permit a web application from one origin to access resources from a different origin. Use a CORS filter when a browser-based application needs to request resources from a different origin. The gateway applies the policy and answers preflight requests directly, so your backend services do not have to implement CORS themselves. Fields include `allowOrigins`, `allowMethods`, `allowHeaders`, `exposeHeaders`, `allowCredentials`, and `maxAge`. For information, see "Cross-Origin Resource Sharing". |
07d4922 to
dd9fd1e
Compare
| `requestMirror`:: | ||
| Available on {SMProductName}, this extended filter mirrors (i.e. sends a duplicate) requests to specified destinations (backendRef). Fields include: backendRef, and the optional percent or fraction to specify the portion of requests that should be mirrored. If neither percent nor fraction are specified, then 100% of requests are mirrored. | ||
| Available on {SMProductName}, this extended filter mirrors, sends duplicate, requests to specified destinations (`backendRef`). Fields include: `backendRef`, and the optional percent or fraction to specify the portion of requests that should be mirrored. If neither percent nor fraction are specified, then 100% of requests are mirrored. |
There was a problem hiding this comment.
Available on {SMProductName}, this extended filter mirrors, sends duplicate, requests to specified destinations
not sure if this update was intentional, but this feels like awkward sentence structure. I felt like the (i.e. sends a duplicate) made sense as a parenthetical, maybe (sends duplicate) is what you are going for? let me know if I'm misunderstanding
There was a problem hiding this comment.
We have a rule about parenthesis but as it is legacy content, I'll leave it in.
dd9fd1e to
f0b1e1b
Compare
|
thanks for the quick responses! |
|
@dfitzmau: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Version(s):
5.0
Issue:
OSDOCS-21849
Link to docs preview: