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

[Feature Request] I am currently integrating the PancakeSwap API into my application and have encountered a CORS policy restriction while attempting to access the API from the frontend hosted at https://fawn.app #11129

Open
1 task done
jiahuamld opened this issue Jan 12, 2025 · 0 comments
Labels
Feature Request New feature or request Triage Awaiting team acknowledgement

Comments

@jiahuamld
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem you are facing?

Access to fetch at 'https://routing-api.pancakeswap.com/v0/v3-pools-tvl/56' from origin 'https://fawn.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

I am currently integrating the PancakeSwap API into my application and have encountered a CORS policy restriction while attempting to access the API from the frontend hosted at https://launcher-fawn.app

Describe the solution you'd like

d it be possible to add support for CORS by modifying the API's response headers to allow requests from specific domains? Specifically, it would be helpful if the following headers could be added to the API's responses:

Access-Control-Allow-Origin: https://fawn.app
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization

How does this feature benefit PancakeSwap users and CAKE holders?

This change would greatly enhance the usability of your API for developers and enable seamless integration into modern web applications.

Anything else?

No response

@jiahuamld jiahuamld added Feature Request New feature or request Triage Awaiting team acknowledgement labels Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request Triage Awaiting team acknowledgement
Projects
None yet
Development

No branches or pull requests

1 participant