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

Problem with CORS authorisation headers #2

Closed
DoctorDemon opened this issue Sep 17, 2024 · 4 comments
Closed

Problem with CORS authorisation headers #2

DoctorDemon opened this issue Sep 17, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@DoctorDemon
Copy link

Dear Mr. Cameron,
I recently found your Abacus API and it is exactly what i need for my small web-game project.
The project is in Javascript/HTML and it tries to call the

 /update/:namespace/*key?value=:amount

endpoint in the backround to keep track of some scores.

Unfortunately every time i try to programmatically call this endpoint, i get an error in the web-console, saying that the CORS header did not include a header allowing the Authorization header in my request.
I dug deeper and i could not find any fixes on my end but to disable my browser security, but that is not a persisting fix.
I found that the server has to return the following header to allow the request:

Access-Control-Allow-Headers: Authorization

I would really appreciate if you could take a look at this and i am happy to provide more info if needed.

Sincerely,
S.Z.

@JasonLovesDoggo
Copy link
Owner

Hey! Thanks for the issue, I'll check it out tonight and should have a patch out then!

@JasonLovesDoggo JasonLovesDoggo self-assigned this Sep 17, 2024
@JasonLovesDoggo JasonLovesDoggo added the bug Something isn't working label Sep 17, 2024
@JasonLovesDoggo
Copy link
Owner

Let me know if you still have issues, prod is updated!

@DoctorDemon
Copy link
Author

It seems to work perfectly!
Thank you for your time and efforts!

Sincerely,
S.Z.

@JasonLovesDoggo
Copy link
Owner

It seems to work perfectly! Thank you for your time and efforts!

Sincerely, S.Z.

Glad to hear it!

If you ever have any feedback in the future on how I can improve abacus, just let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants