a-know / Pixela

A service for generating GitHub-like graphs. Record and Track your habits or effort. All by API.

Home Page:https://pixe.la

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API to get graph pixels list returns response without CORS headers

ryosms opened this issue · comments

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.

@ryosms
Thanks for the report! I will check!

@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

I checked it!
It looks to be working well!

Thank you quickly fix 👍

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! 😄