fixes #70 adding manual cors preflight for /close process.