Transform Allow-Origin when publishing