Fixed a massive issue where cors wasn't working all the time..