Stuk / jszip-utils

Other
230 stars 193 forks source link

Cross Origin Policy #10

Closed Maarethyu closed 6 years ago

Maarethyu commented 9 years ago

I have a Cross Origin Policy error when i try to get the content of an image, can you tell me how to bypass it ? I've searched everywhere and all the solutions don't work :/

dduponchel commented 9 years ago

Could you paste the full error message ? If you're trying to get a resource on an other server, your browser will block the request unless the second server says otherwise. The server needs to add a Access-Control-Allow-Origin HTTP header to do that.

leizard commented 8 years ago

that s exactly what I'm dealing with. Where could I put a Access-Control-Allow-Origin HTTP header. Could I put it in the JSZipUtils when creating XMLHttpRequest ?

eldyvoon commented 8 years ago

I have this issue too, please fix this, I'm stuck now, couldn't download image on s3. How to set header of http?

eldyvoon commented 8 years ago

I figured it out. I did it by using

crossorigin.me

. Initially I thought it was my s3's bucket config but eventually realised there's limitation of jszip-utils, but i manage to get it working but simple doing crossorigin.me/http://..my_s3_image_path

anorman728 commented 7 years ago

Yeah, it's been months since the last comment, but I'm getting the problem, too... I can't get JSZip to work at all at the moment.

The crossorigin.me solution doesn't seem to work for me.

victornpb commented 7 years ago

@eldyvoon It is indeed the configuration of your s3 bucket. You need to configure the Access-Control-Allow-Origin to *

Search for S3 bucket enable cors if you need instructions.

bcazu commented 6 years ago

I'm using the S3 API for Java because I can have fileStream.