Maybe do_OPTIONS is not the only problem, and I have to adjust do_POST as well?