Johan Gyllenspetz
Johan Gyllenspetz

Reputation: 344

Does cloudfront not support CORS with custom origin?

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 and HEAD requests from end users.

I can´t find anyone complaining about this on the web so can anyone confirm this?

Upvotes: 2

Views: 1107

Answers (1)

danilop
danilop

Reputation: 397

CloudFront now supports the following requests (including OPTIONS):

  • DELETE
  • GET
  • HEAD
  • OPTIONS
  • PATCH
  • POST
  • PUT

The HTTP Methods section in CloudFront documentation referenced in the question has been updated.

Upvotes: 2

Related Questions