mirror of
https://github.com/avgupta456/github-trends.git
synced 2025-06-06 03:25:27 +00:00
Bug Report: CORS Policy and Server Errors in GitHub Wrapped Web App #31
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @G4EVA-dev on 12/23/2024
Description
Accessing the GitHub Wrapped web app resulted in multiple errors related to the API endpoints, including CORS issues, a 500 internal server error, and JavaScript runtime exceptions. These issues prevent the application from functioning as expected for certain users.
Steps to Reproduce
myID
.Observed Errors
CORS Policy Issue:
https://api.githubtrends.io/wrapped/valid/myID
Failed Resource Loading:
500 Internal Server Error:
JavaScript Runtime Error:
SelectUser.js:69
Expected Behavior
The app should successfully fetch data from the API and display the user's wrapped information without errors.
Environment
Possible Causes
api.githubtrends.io
) does not include theAccess-Control-Allow-Origin
header, blocking cross-origin requests.https://api.githubtrends.io/wrapped/myID?year=2024
, indicating a potential bug in the backend logic.Suggested Fixes
CORS Configuration:
Access-Control-Allow-Origin
header with a value of*
or the specific originhttps://www.githubwrapped.io
.Backend Debugging:
GET /wrapped/myID?year=2024
.Frontend Code Update:
SelectUser.js
:Additional Context
Priority: High
Labels: Bug, Backend, Frontend, CORS