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

API to get graph pixels list returns response without CORS headers #12

Closed
ryosms opened this issue Aug 2, 2020 · 4 comments
Closed

Comments

@ryosms
Copy link

ryosms commented Aug 2, 2020

Get graph pixels list

Because of returnning response without CORS headers, my request is failed using axios.
I guess, it doesn't implement the OPTIONS method.

The error message below.

Access to XMLHttpRequest at 'https://pixe.la/v1/users/ryosms/graphs/<awesome-graph-id>/pixels' from origin 'https://my-awesome-app.example.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
@a-know
Copy link
Owner

a-know commented Aug 2, 2020

@ryosms
Thanks for the report! I will check!

@a-know
Copy link
Owner

a-know commented Aug 3, 2020

@ryosms
I checked the code, so as you pointed out, the routing of the OPTIONS method was missing.
I immediately addressed this and also deployed it. Can you check it to see if it's OK? 😄

@ryosms
Copy link
Author

ryosms commented Aug 3, 2020

@a-know

I checked it!
It looks to be working well!

Thank you quickly fix 👍

@ryosms ryosms closed this as completed Aug 3, 2020
@a-know
Copy link
Owner

a-know commented Aug 3, 2020

Sounds like it's working as expected, I'm glad it's working for you too!
Thank you for reporting back to me this time! 😄

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