jsoninfo: Cross-origin resource sharing headers

When httpheaders are enabled the CORS headers are printed in order to
allow the json retrieval by javascript applications.