Open akshansh-modi opened 3 months ago
@akshansh-modi are you willing to work on the issue?
Yes, I was looking into it since I am also working on issue #1768. This appears to be an easy one-line fix. Could you please assign it to me so I can create the PR?
@sudhanshutech, should I go ahead and create a PR?
@sudhanshutech, should I go ahead and create a PR?
What' fix are you proposing?
@leecalcote @sudhanshutech
The current implementation uses fetch
for downloading a resource, which triggers CORS issues.
Proposed Solution:
To bypass the CORS issue, I suggest using an <a>
tag for direct navigation to the download link.
This change will allow the resource to be downloaded without encountering CORS errors as the browser will treat it as only navigation.
<a href="/catalog/{{type.downloadLink}}" download>
to:
<a href="https://playground.meshery.io/api/pattern/download/{{type.patternId}}" download>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
i am unable to download catalog item , it seems to me that this is a CORS issue
Screenshots
Workaround : opening download link in another tab seems to work
Enviroment:
Contributor Guides and Handbook
The meshery.io website uses Jekyll and GitHub Pages. Site content is found under the
master
branch.