M
M
Marat Bektimirov2012-02-07 19:24:31
JavaScript
Marat Bektimirov, 2012-02-07 19:24:31

CDN on Amazon S3 or CloudFront and Cross Domain Ajax. How?

The task is simple: use Amazon disks for uploading and uploading files. The question is how to properly configure Amazon for these purposes? To simply pull files through $.ajax(...) . Are there any solutions without crutches like iframe etc.? The last solution was a proxy on nginx, but this is an additional transfer of traffic through the application. Please help.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Z
Zada, 2012-02-08
@Zada

It doesn't work on Amazon yet. You can look at the numerous threads on their forum, in particular forums.aws.amazon.com/message.jspa?messageID=310916
But looking at alternatives, Rackspace's Cloud Files seems to support the Access-Control-Allow-Origin header, which and will solve the problem.
www.rackspace.com/cloud/blog/2011/05/11/thanks-for-your-feedback-cloud-files-supports-12-new-headers/

E
Eugene, 2012-02-07
@Nc_Soft

>To simply pull files through $.ajax(...)
what does this mean?

S
sajgak, 2012-02-07
@sajgak

Cross Site Scripting. Nothing better than a proxy (in its various manifestations) was invented

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question