lighthouse/common/warp_utils/src
Paul Hauner a3704b971e Support pre-flight CORS check (#1772)
## Issue Addressed

- Resolves #1766 

## Proposed Changes

- Use the `warp::filters::cors` filter instead of our work-around.

## Additional Info

It's not trivial to enable/disable `cors` using `warp`, since using `routes.with(cors)` changes the type of `routes`.  This makes it difficult to apply/not apply cors at runtime. My solution has been to *always* use the `warp::filters::cors` wrapper but when cors should be disabled, just pass the HTTP server listen address as the only permissible origin.
2020-10-22 04:47:27 +00:00
..
cors.rs Support pre-flight CORS check (#1772) 2020-10-22 04:47:27 +00:00
lib.rs Support pre-flight CORS check (#1772) 2020-10-22 04:47:27 +00:00
reject.rs Implement VC API (#1657) 2020-10-02 09:42:19 +00:00
task.rs Implement VC API (#1657) 2020-10-02 09:42:19 +00:00