Guest User

Untitled

a guest
Jan 18th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
  3. <CORSRule>
  4. <AllowedOrigin>*</AllowedOrigin>
  5. <AllowedMethod>GET</AllowedMethod>
  6. <AllowedHeader>*</AllowedHeader>
  7. </CORSRule>
  8. </CORSConfiguration>
  9.  
  10. fabric.Image.fromURL(URL, function(image) {
  11. [...]
  12. .bind(this),{
  13. crossOrigin: 'anonymous'
  14. });
  15.  
  16. document.querySelector("#canvas").toDataURL();
  17.  
  18. curl -H "Access-Control-Request-Method: GET" -H "Origin: http://localhost:8000" --head https://XXXX.png
Add Comment
Please, Sign In to add comment