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

How to add parameters to the Fetch image API #215

Open
imransilvake opened this issue Mar 4, 2023 · 1 comment
Open

How to add parameters to the Fetch image API #215

imransilvake opened this issue Mar 4, 2023 · 1 comment

Comments

@imransilvake
Copy link

I want to add headers to the API that fetches the Image.

I upload an image with the POST API request and got the URL back. I want to pass headers to the image url in order to make it work. How can I do that?

example:

https://api.personal.ai/v1/image-audio-memory?id=64039119152d7977caa16123&Screenshot 2023-03-03 at 20.19.22.png
@iHaroon29
Copy link

iHaroon29 commented Mar 9, 2023

Hi @imransilvake, I can't view the screenshot link that you posted, but from what I've understood from your comment, seems like your image tags are missing the "crossorgin" attribute which will enable image tags to fetch data from third party server. Setting "crossorigin" attribute to "anonymous" can help fix the problem, it did at-least in my case. Hope this help.

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