adding to netty pipeline in plugin


In an httpHandler extension, I need to set the access-control-allow-headers header. This is to allow for X-Requested-With. The simplest way would be for Jetbrains to add it to

However, given that they haven't, I'm looking for a way to add a handler to the pipeline before the preflight checks in io.netty.handler.codec.http.cors.CorsHandler#channelRead kick in. It doesn't seem to be possible.

Is it possible to add extension points in a future version such that I can create a io.netty.handler.codec.http.cors.CorsConfig, or add a handler by default or something?

cheers, jamie




I have added X-Requested-With to allowed request headers. Will be available in the next 2017.3 EAP.


> Is it possible to add extension points in a future version

I prefer to keep it simple. Is it ok for your to use 2017.3 EAP?


That works for me, thank you. I guess I was trying to allow for future requirements that I don't yet know about.

I will test with the next 2017.3 EAP. My concern is that their may be other headers, but I will check it with the EAP.

thanks again, jamie


Please sign in to leave a comment.