Skip navigation
Home/Support/

Forums

313 Views 0 Replies Latest reply: Aug 20, 2009 7:46 AM by IrishAIRMax RSS
IrishAIRMax Calculating status... 29 posts since
May 14, 2009
Currently Being Moderated

Aug 20, 2009 7:46 AM

Authorization header and XMLHttpRequest in air??

Hi everyone,

 

I had huge trouble with this header as I was not aware Adobe had restriced it as I had not come across this. Also the error message (DOM Exception 12 : syntax error) was not much help either. The way I got around this is by string.replace("\n","") encase anyone else is having same problem. don't know why tihs works because there was no "\n" in the string, i evern did string.search to check for one maybe only AIR could see but none there? I have no idea why this allows this to work but it does, got idea from a base64encoder example that didn't work, maybe AIR thinks it encoded and safe to send?

 

Anyways.........

 

This is not why I am posting, that problem is fixed.

 

I was wondering does anyone know if i only had this problem because I was in the application sandbox.

 

i.e. if i was in a non application sandbox ( an iframe which pointed to another html file through "scr" and that has "sandboxRoot='www.somedomain.com' documentRoot='app:/'" would this I have this problem. Does AIR only restric the authorization header with the application sandbow and not the no application sandbox?

 

I ask this as Adobe say that the non application sandbox acts like normal web browser in that it takes in external JavaSrcipt files from googl/yahoo etc. and allows for eval..........

 

 

So does AIR restrict the authorization header in both sandboxes or just the application sandbox??

 

Plus what does optional mean in this box below found at

http://labs.adobe.com/wiki/index.php/AIR:HTML_Security_FAQ#How_would_s omeone_code_in_this_new_model.3F??

 

 

Capability

AIR Application Sandbox

AIR Non-application

Can    execute cross-domain requests (XMLHttpRequest)?

Yes

Optional

 

 

what does optional mean?? do you have to set the non aplication sandbox up in a certain way in order to allow for XMLHttpRequests?

 

Thank you all in advance

IrishAIRMax

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points