Needed adaptions for CORS and print in root

Discussed with Marc.