Skip to content

Commit

Permalink
Dev: add cors headers
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanshparashar committed Oct 9, 2024
1 parent 38d855b commit 6b6146c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ const fetchProjects = async (

try {
const response = await axios.get(
`${PORTAL_API_ENDPOINT}/api/projects?chains=${chainSlug}`
`${PORTAL_API_ENDPOINT}/api/projects?chains=${chainSlug}`,
{
headers: {
'Access-Control-Allow-Origin': '*'
}
}
)
return response.data as PortalProject[]
} catch (error) {
Expand Down

0 comments on commit 6b6146c

Please sign in to comment.