icloud calendar to ical: {"reason":"Invalid or missing Origin header","error":1}

Hi,


For many years I have been using the technique as mentioned here: Archive or make copies of your iCloud data - Apple Support for converting my icloud calendars into ical format. For some odd reason this no longer works (my old scripts or manually). In Chrome or Firefox on Linux I get this response:


{"reason":"Invalid or missing Origin header","error":1}


When using wget, it returns:


HTTP request sent, awaiting response... 421 Misdirected Request


I see the same error when using Windows. Any ideas? Thanks.

Posted on May 24, 2017 3:32 AM

Reply
4 replies

Jun 7, 2017 11:11 PM in response to dsits

I found a solution to this issue that worked for me.


I had some calendars that had the error {"reason":"Invalid or missing Origin header","error":1} and some that didn't. Then I noticed that the ones that I could download without any trouble started with webcal://p05- while those that had the error started with webcal://p45-. So I simply unticked Public Calendar and clicked OK before selecting the calendar again and ticking Public Calendar. If that generates a URL starting with webcal://p45-, copy it to the browser and try downloading it, if not, try again until you get the right URL.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

icloud calendar to ical: {"reason":"Invalid or missing Origin header","error":1}

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.