Foros del Web » Creando para Internet » HTML »

No encuentro informacion de crossorigin

Estas en el tema de No encuentro informacion de crossorigin en el foro de HTML en Foros del Web. Buenas! He estado buscando información sobre el atributo crossorigin( para <img> ),y me es imposible, no lo entiendo, o bien porque está en ingles ,o ...
  #1 (permalink)  
Antiguo 09/05/2013, 07:38
 
Fecha de Ingreso: enero-2013
Mensajes: 11
Antigüedad: 11 años, 3 meses
Puntos: 0
No encuentro informacion de crossorigin

Buenas! He estado buscando información sobre el atributo crossorigin( para <img> ),y me es imposible, no lo entiendo, o bien porque está en ingles ,o porque la traducción es pésima ,o no tengo ni idea.Sólo decir que estoy estudiando HTML( en general) con todos los atributos y etiquetas ,aunque no sé todavía sobre JavaScript.
  #2 (permalink)  
Antiguo 09/05/2013, 13:09
Avatar de Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 15 años, 8 meses
Puntos: 2237
Respuesta: No encuentro informacion de crossorigin

No parece tan difícil entenderlo: http://www.w3schools.com/tags/tag_img.asp

Cita:
Atributo: crossorigin
Posibles valores: anonymous, use-credentials
Descripción: Allow images from third-party sites that allow cross-origin access to be used with canvas (Básicamente: Permite acceso a imágenes de sitios de terceros para ser usadas en <canvas />)
Hay una explicación más amplia en: https://developer.mozilla.org/en-US/...FElement%2FImg

Cita:
crossorigin
This enumerated attribute indicates if the fetching of the related image must be done using CORS or not. CORS-enabled images can be reused in the <canvas> element without being tainted. The allowed values are:

anonymous
A cross-origin request (i.e. with Origin: HTTP header) is performed. But no credential is sent (i.e. no cookie, no X.509 certificate and no HTTP Basic authentication is sent). If the server does not give credentials to the origin site (by not setting the Access-Control-Allow-Origin: HTTP header), the image will be tainted and its usage restricted..
use-credentials
A cross-origin request (i.e. with Origin: HTTP header) is performed with credential is sent (i.e. a cookie, a certificate and HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through Access-Control-Allow-Credentials: HTTP header), the image will be tainted and its usage restricted.

When not present, the resource is fetched without a CORS request (i.e. without sending the Origin: HTTP header), preventing its non-tainted used in <canvas> elements. If invalid, it is handled as if the enumerated keyword anonymous was used. See CORS settings attributes for additional information.
Si no te es suficiente esa información, entonces investiga sobre peticiones CORS (CORS requests)
__________________
- León, Guanajuato
- GV-Foto
  #3 (permalink)  
Antiguo 10/05/2013, 01:27
 
Fecha de Ingreso: enero-2013
Mensajes: 11
Antigüedad: 11 años, 3 meses
Puntos: 0
Respuesta: No encuentro informacion de crossorigin

Muchas gracias.

Etiquetas: encuentro, informacion
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 06:14.