Check CORS error on tiles fetch
Can be modified via the transformRequest function, eg on this link
Goal is to remove the need for an Allow-CORS plugin.
Code-sample from the doc:
// Use `transformRequest` to modify requests that begin with `http://myHost`.
transformRequest: (url, resourceType) => {
if (resourceType === 'Source' && url.startsWith('http://myHost')) {
return {
url: url.replace('http', 'https'),
headers: {'my-custom-header': true},
credentials: 'include' // Include cookies for cross-origin requests
};
}
}
hi @jo-chemla I'd like to work on this issue if no one is working on it . Thankyou.
Hi there, you sure can, are you familiar with the project and have you successfully deployed it/used it locally? This is not necessarily the most easy nor important issue, you could look into https://github.com/Iconem/search-satellite-imagery/issues/11 or https://github.com/Iconem/search-satellite-imagery/issues/16 instead if you want to tackle a more interesting one!
Also, this repo is far more manageable if you would like to give it a go! historical-satellite good-first-issues