DAT-2021 Add CORS helper and usage in Wikis and Article APIs

Can we put those two if in one statement?