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-Error #4

Open
kalilinux-png opened this issue Jul 19, 2023 · 5 comments
Open

CORS-Error #4

kalilinux-png opened this issue Jul 19, 2023 · 5 comments

Comments

@kalilinux-png
Copy link

kalilinux-png commented Jul 19, 2023

Hi Astha Team @brisingr123 👋

I was getting cors error in one of the endpoint which the quote endpoint
i have also attached the screenshot of error and the code that i used for more details

image
image

@brisingr123
Copy link
Contributor

Check now and let me know

@kalilinux-png
Copy link
Author

Check now and let me know

@brisingr123 no this issue is still open

@kalilinux-png
Copy link
Author

Hi @brisingr123
The Reponse Header value for funds endpoint request contains this 👇
'access-control-allow-origin' => { name: 'Access-Control-Allow-Origin', value: '*' },

The Response header value of quote endpoint request contains this 👇
'access-control-allow-origin' => { name: 'access-control-allow-origin', value: '*, *' },

You can see the difference very easily , browser was crying and saying this is a cors error more details see below 👇

image

Images for Quote Response Header
image

Images for Funds Response Header
image

@brisingr123
Copy link
Contributor

Found and fixed. Let me know your feedback.

@kalilinux-png
Copy link
Author

@brisingr123 Getting the same cors in the option chain endpoint also, most probably the response header is missing 'access-control-allow-origin'

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