Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS issue.. Signed URL (only in uniforms) #293

Closed
bneigher opened this issue Jan 3, 2021 · 2 comments
Closed

CORS issue.. Signed URL (only in uniforms) #293

bneigher opened this issue Jan 3, 2021 · 2 comments

Comments

@bneigher
Copy link

bneigher commented Jan 3, 2021

Very noob question here.. but for some reason when I use the Shader (created Image Saturate component) I'm getting a CORS exception. But the image loads fine in a standard img src. Is there anything specifically that I'm needing here?

I followed this example here:
https://github.com/gre/gl-react/blob/master/packages/cookbook/src/examples/saturation/index.js

Am looking to load a signed url from AWS S3. I believe it has something to do with the way the image url is passed into the uniforms?

Appreciate any guidance

@bneigher bneigher closed this as completed Jan 4, 2021
@gre
Copy link
Owner

gre commented Jan 4, 2021

https://webglfundamentals.org/webgl/lessons/webgl-cors-permission.html might help
In theory I already did all the measures to load the image tho.
The issue is closed, is the problem fixed?

@bneigher
Copy link
Author

bneigher commented Jan 4, 2021

Indeed this was the problem. I ended up making the images I need available on the server. It wasn't a webGL problem as I had issues making ajax calls trying to convert to objectUrls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants