Forum

Message Boards Message Boards

Back

Finder REST API recent change in CORS policy?

Toggle
https://finder.creodias.eu/ give you the REST query of your latest search.
It's really useful if you want to make small variations on that search programmatically.
I've used such REST queries to check the availability of Sentinel-2 products from with a webpage
that I authored.
I've done this using javascript fetch() calls - respecting the CORS origin header.
It all worked fine until this morning.

Q:
Has there been a recent change in finder server such that it no longer cooperates with CORS
header origin requests?
0 (0 Votes)

RE: Finder REST API recent change in CORS policy?
Answer
1 March 2022 1:21 as a reply to Forget It.
I'm also actively using this functionallity. The specific CORS error below - for me it looks more like a configuration mistake.

Access to fetch at 'https://finder.creodias.eu/resto/api/collections/Sentinel2/search.json?maxRecords=100&page=1&startDate=2022-01-30T12%3A56%3A10.450Z&completionDate=2022-03-01T12%3A56%3A10.450Z&geometry=POLYGON...' from origin 'http://localhost:3000' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values ': *', but only one is allowed. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Please investigate that.
0 (0 Votes)

RE: Finder REST API recent change in CORS policy?
Answer
11 March 2022 9:30 as a reply to Jakub Łobodecki.
Hi,

We have just fixed the issue.
We apologize for the inconvenience.

Regards,
Marcin
+1 (1 Vote)

RE: Finder REST API recent change in CORS policy?
Answer
11 March 2022 11:17 as a reply to Marcin Gil.
Many thanks Marcin!
0 (0 Votes)

RE: Finder REST API recent change in CORS policy?
Answer
30 March 2022 10:04 as a reply to Marcin Gil.
Marcin Gil
Hi,

We have just fixed the issue.
We apologize for the inconvenience.

Regards,
Marcin
It looks like the same problem has returned - as of 12:00 CET 30/03/2022.
Please can we have a new fix?
Cheers
0 (0 Votes)

RE: Finder REST API recent change in CORS policy?
Answer
1 April 2022 8:33 as a reply to Forget It.
as of 10:30 CET 01-04-2022 the problem has gone away.
Thanks!
0 (0 Votes)