icssc / AntAlmanac

A course exploration and scheduling tool for UCI Anteaters
https://antalmanac.com
MIT License
54 stars 64 forks source link

Course descriptions fail to load #177

Closed ChaseC99 closed 3 years ago

ChaseC99 commented 3 years ago

Course descriptions are failing to load. Although the status code is 200, the response indicates that it is actually a 301.

Request URL: https://api.antalmanac.com/api/peterportalapi/courses/COMPSCI/113 Request Method: GET Status Code: 200

image

ChaseC99 commented 3 years ago

This is because our backend is using http to query the endpoint instead of https: https://github.com/icssc-projects/antalmanac-backend/blob/master/routes/peterportalapi.js#L13

We can access the PeterPortal API directly from the frontend, so we actually don't even need to use our own backend as a proxy.

TODO: