I'm getting CORS policy issue with the pages function.

Hi, I tried to set Access-Control-Allow-Origin: * in the /functions/_middleware.ts but it still showing the the error, plz check the code below,
Screenshot_from_2023-05-17_18-57-37.png
Screenshot_from_2023-05-17_19-00-20.png
Screenshot_from_2023-05-17_19-00-36.png
Screenshot_from_2023-05-17_19-01-01.png
Was this page helpful?