How to enable CORS support in Jenkins?

Hi dev.

I’m using Jenkins 2.426.2 and want to enable CORS support. The cors-filter-plugin hasn’t been updated in a long time and doesn’t seem to be working properly.

How to enable CORS support in Jenkins?

Thanks.