Reputation: 344
It seems like I can´t use a custom origin on Amazon CloudFront and a cross-domain XMLHttpRequest since CloudFront won´t forward the preflight OPTIONS request according to section HTTP Methods in Request and Response Behavior, and Supported HTTP Status Codes for Custom Origins:
CloudFront accepts only
GET
andHEAD
requests from end users.
I can´t find anyone complaining about this on the web so can anyone confirm this?
Upvotes: 2
Views: 1107
Reputation: 397
CloudFront now supports the following requests (including OPTIONS):
The HTTP Methods section in CloudFront documentation referenced in the question has been updated.
Upvotes: 2