Skip to content

Commit

Permalink
fix(resource-group-discussion): remove CORS proxy for Ask.CI API
Browse files Browse the repository at this point in the history
  • Loading branch information
yomatters committed Nov 18, 2024
1 parent 8fed68f commit 37620ce
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/resource-group-discussion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ const getCategoryUri = (category, siteData) => {
};

export default function ResourceGroupDiscussion({ infoGroupId }) {
const siteData = useJSON(`https://ask.cyberinfrastructure.org/site.json`, {
corsProxy: true,
});
const siteData = useJSON(`https://ask.cyberinfrastructure.org/site.json`);
// Try to find a category with a slug that matches the info group ID.
// TODO: Replace this with better logic once the CID and slug are available
// in the Support APIs.
Expand All @@ -33,9 +31,7 @@ export default function ResourceGroupDiscussion({ infoGroupId }) {
);

const categoryDataUri = getCategoryUri(category, siteData);
const categoryData = useJSON(categoryDataUri, {
corsProxy: true,
});
const categoryData = useJSON(categoryDataUri);

if (
!categoryData ||
Expand Down

0 comments on commit 37620ce

Please sign in to comment.