-
Notifications
You must be signed in to change notification settings - Fork 10
CORS #8
Comments
I think this happened with the new serverless release, can you confirm which version of serverless you are using ? |
I am going to try and play with this again over the weekend to see if I didn't miss something. |
One idea might be to add the following line
to here perhaps? I am not at all familiar with lambda proxies though, so that is a bit of a guess. Again, will try testing over the wkd. |
@samsammurphy I can't reproduce this but with sls |
I had removed it.. new endpoint up
there is no CORS error, but it still is hitting something.. hopefully will find more info to help diagnose.. |
In the initScene() function there is a query for metadata on line 91. Here is an example of one of my query urls: here is part of a response from jquery .fail() when trying to $.getJSON such a query:
As you see the error message is "A defined coordinate reference system is required". I'm not sure why that error is raised. Any ideas? |
@samsammurphy I am running into the same issue "A defined coordinate reference system is required". Have you been able to figure out the cause? landsat-tiler works normally though. |
are you using the |
@vincentsarago I am using the simple build. I'll make the suggested fix and get back to you. Thank you. |
@vincentsarago Removing the line has resolved the issue. Thanks a lot. |
no problem @Dharnidharka, btw just checked your web, seems you are doing great stuff, love to see what you'll do with sentinel-tiler :-) sorry @samsammurphy I should have realized that 21 days ago 🤦♂️, Feel free to close here if it also worked for you |
@vincentsarago Thank you. I recently started exploring satellite imagery and this tool is simply awesome. Will let you know if I manage to do something worthwhile on top of it :) |
🎉 that worked. thanks @vincentsarago ! |
I am hitting CORS issue that is very similar to the one described for the landast-tiler. However, this time setting a AWS_REGION variable doesn't seem to fix the problem.
After digging around a little in the serverless issues (e.g. #4681) it seems that maybe we need to define Access-Control-Allow-* headers ?
As defined in the serverless docs
Here is a screenshot of how it looks on the frontend:
The text was updated successfully, but these errors were encountered: