assets-on-workers icon indicating copy to clipboard operation
assets-on-workers copied to clipboard

CORS ERROR

Open nekooei opened this issue 3 years ago • 2 comments

hello I've use this script to serve my S3 Storage (backed by MinIO) All thing work fine I've tried my url in browser and everything works fine

but when in our code, when we try to load Font asset by CSS, The CORS error appears the direct url to download Font asset from browser still works fine How can I fix this issue?

nekooei avatar Nov 09 '21 16:11 nekooei

I have the same issue.

armanhoseini68 avatar Nov 10 '21 12:11 armanhoseini68

@armanhoseini68 @nekooei

Should just be able to add 'Access-Control-Allow-Origin': '*' to your headers object.

So const headers = { 'cache-control': 'public, max-age=14400' } becomes const headers = { 'cache-control': 'public, max-age=14400', 'Access-Control-Allow-Origin': '*' }

acoreyj avatar Mar 28 '22 17:03 acoreyj