title: How to use guacamole in my own django project
body: <p>Recently, I was writing a Django project with guacamole. How can I insert the guacamole windows to my Django page?</p>
  
  <p>I tried to use iframe( the IP of django is <strong>localhost:8000</strong> and IP of guacamole is <strong>localhost:8080</strong> , but then user will have to input the username and password of guacamole even he has logined the Django page.</p>
  
  <p>Of couse the Django page can get the username and password of guacamole with ajax request, but it seems that we can't manipulate the element of inner iframe whose IP is different from the outer webpage.</p>
  
  <p>I use urllib2 (from Django web server) to send a request to guacamole( <strong>localhost:8080/guacamole/api/tokens</strong> with username and password, only get a token, I don't know how to use it nor whether it will work.</p>
  
  <p>I tried to send the request by the web browser, but get an error <strong>XMLHttpRequest cannot load <a href="http://192.168.1.142:8080/guacamole/api/tokens" rel="nofollow">http://192.168.1.142:8080/guacamole/api/tokens</a>. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.</strong></p>
  
  <p>I don't want user to input the username and password which is terrible. How can I fix it? Thank you for your watching. </p>