Monday, November 24, 2014

Unable to open URL in new tab from ajax hit

Ext.Ajax.request({
url: 'generate_birt/',
});

in view.py 


def generate_birt(request):
    url = 'http://10.2.114.2:8080/birt/frameset?__report=report/test.rptdesign&sample=my+parameter&__format=pdf'
    return  HttpResponseRedirect(url,mimetype='pdf')

following error throws  


XMLHttpRequest cannot load http://10.2.114.2:8080/birt/frameset?__report=report/test.rptdesign&sample=my+parameter&__format=pdf. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://10.2.114.2:8000' is therefor

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/967fea96-34c0-4c93-a13f-887b0e11e7ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment