API to get graph pixels list returns response without CORS headers
ryosms opened this issue · comments
ryosms commented
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 (Daisuke Inoue) commented
@ryosms
Thanks for the report! I will check!
a-know (Daisuke Inoue) commented
@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? 😄
a-know (Daisuke Inoue) commented
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! 😄