trying to fix cross-origin issues