netty5/codec-http/src/main/java/io/netty/handler/codec/http/cors
Gustavo Fernandes f874a37ecb Fixes NPE in Corshandler for unauthorized prefligt requests (#7865)
Motivation:
NPE in `CorsHandler` if a pre-flight request is done using an Origin header which is not allowed by any `CorsConfig` passed to the handler on creation.

Modifications:
During the pre-flight, check the `CorsConfig` for `null` and handle it correctly by not returning any access-control header

Result:
No more NPE for pre-flight requests with unauthorized origins.
2018-04-13 14:36:45 +02:00
..
CorsConfig.java fix the typos 2017-04-20 04:56:09 +02:00
CorsConfigBuilder.java Fix typos in docs. 2018-02-14 08:44:07 +01:00
CorsHandler.java Fixes NPE in Corshandler for unauthorized prefligt requests (#7865) 2018-04-13 14:36:45 +02:00
package-info.java Adding a Cross Origin Resource Sharing (CORS) handler. 2014-01-16 08:18:16 +01:00