Attempting to handle CORS issue server side.