Yes, you can serve an HTTP header from plugin, so this is possible as a
plugin. See PageDecorator. And while I'm not too familiar with this,
this might make sense in the core.
Plugins responding to OPTIONS call on and responding according to what's
actually sitting at the endpoint is more tricky from a plugin. So this
might better fit the core after all.
I'm also not too sure how this would interact with security. Do we only
do this when we allow anonymous read access? Wouldn't it still make it
vulnerable to CSRF if Jenkins is running inside the firewall (which is
probably the majority?)
> --
> You received this message because you are subscribed to the Google
> Groups "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
jenkinsci-de...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
--
Kohsuke Kawaguchi
http://kohsuke.org/