Hello djangonauts, I am attempting to use Django and Flex. It went all good until i moved to mod_python on my local machine (127.0.0.1). If i try to upload from the flex component (swf comming from 127.0.0.1) to a django view (also on localhost) i get a security violation error 2048 from flex !
This should happen only when trying to access different domains. Get URL http://127.0.0.1/create Page is received with a flex component Then on 'click' a javascipt pass the harcoded url = "http://127.0.0.1/ create" to the flex component which submit his data to the /create view via POST var loader:MultipartLoader = new MultipartLoader(url); ... loader.load() That is when i get: "Security sandbox violation: http://127.0.0.1/site_media/main.swf cannot load data from 127.0.0.1:80" I read about crossdomain.xml such as <xml version="1.0"> <cross-domain-policy> <allow-access-from domain="*"></allow-access-from> </cross-domain-policy> </xml> It is stated that it should be a put at the root of our domain. If i need to put crossdomain.xml at the root of my django project, how do i do this ? With apache httpd.conf ? <Location "/crossdomain.xml"> SetHandler None </Location> I am kind of stuck. I use python 2.5 with apache2 on Ubuntu. Thanks for the help --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

