fixes uploader php to avoid problems with origin not set and CORS