i'm working rn on a side project that can show a linked in job posts in the website, i added a NPM pakage :(https://www.npmjs.com/package/linkedin-jobs-api)
and when i tried to use it there is a problem :
Access to XMLHttpRequest at 'https://www.linkedin.com/jobs-guest/jobs/api/seeMoreJobPostings/search?keywords=software+engineer&location=Egypt&f_TPR=r604800&f_SB2=1&f_E=2&f_WT=3&f_JT=F&start=0' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
What should i do in the next config ?
async rewrites() {
return [
{
source: '/api/:path*',
destination: 'https://www.linkedin.com/:path*',
},
]
},