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

web cors error #46

Closed
goodmirow-1 opened this issue Dec 7, 2022 · 1 comment
Closed

web cors error #46

goodmirow-1 opened this issue Dec 7, 2022 · 1 comment

Comments

@goodmirow-1
Copy link

Hello, I am using this sdk very well.

However, due to the cors policy, related data cannot be received normally on the web.

In nginx, the error "No 'Access-Control-Allow-Origin' header is present on the requested resource.", even though the 'Access-Control-Allow-Origin' command allows the cors.

I tried to resolve it using the coursesProxy parameter and header parameter provided by sdk, but I don't know how to use it for normal use.

Are there any good examples?

@demchenkoalex
Copy link
Member

Hi @goodmirow-1 no, not really. CORS is CORS, nothing we can do on a web from the frontend.. I have read about proxies hence added some fields, but free ones I tried never worked for me. For previews to work on web, they should be parsed on a backend (like https://www.linkpreview.net or something) and not on frontend.

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