You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### What changes were proposed in this pull request?
Add the support of custom filters referring to the Spark.
### Why are the changes needed?
Some filters can be configured by users, the needs of users are
different. Some filters are implemented by other libs.
For example, Jetty has implemented the CORS filter, so we supported
custom filters to satisfy the needs of users.
Fix: #1190
### Does this PR introduce _any_ user-facing change?
Yes, I have added the document.
### How was this patch tested?
test by the browser console
I test Jetty's cors filter.
Configuration
```
gravitino.server.webserver.customFilters=org.eclipse.jetty.servlets.CrossOriginFilter
gravitino.server.webserver.org.eclipse.jetty.servlets.CrossOriginFilter.param.allowedOrigins=*
```
Browser console code
```
var http = new XMLHttpRequest();
var url = 'http://localhost:8090/api/version';
http.onreadystatechange = (e) => {
console.log(http.responseText)
}
http.open("GET", url);
http.send();
```
---------
Co-authored-by: Heng Qin <[email protected]>
Describe the subtask
Support the custom filters
Parent issue
#1184
The text was updated successfully, but these errors were encountered: