Este contenido no está disponible en el idioma seleccionado
Trabajamos constantemente para que el contenido esté disponible en el idioma seleccionado. Gracias por tu paciencia.
How can I configure CloudFront to forward the Authorization header to the origin?
2 minutos de lectura
0
The origin of my Amazon CloudFront distribution requires that requests include the Authorization header. Because of this, my distribution must forward the Authorization header to the origin.
Short description
Configure your distribution to forward the Authorization header to the origin in one of these ways:
Create a cache policy. Then, associate the cache policy with the cache behavior that must forward the Authorization header. Note: You can't use an origin request policy to forward the Authorization header. The header must be a part of the cache key to prevent the cache from satisfying unauthorized requests. CloudFront returns an HTTP 400 error if you create an origin request policy that forwards the Authorization header.
Edit an existing cache behavior with legacy cache settings.
Important: For Amazon Simple Storage Service (Amazon S3) origins, caching based on the Authorization header isn't supported. For more information, see Selecting the headers to base caching on.