Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Widgets are being loaded from a domain named after the current user, not carto.mapping.community #25

Open
almereyda opened this issue Jul 10, 2018 · 3 comments

Comments

@almereyda
Copy link

When adding an empty map and trying to edit its data properties via a widget, the instance tries to connect to a HTTPS host with my username.

Quellübergreifende (Cross-Origin) Anfrage blockiert: Die Gleiche-Quelle-Regel verbietet das Lesen der externen Ressource auf https://yala/api/v1/map/f93869eee7e31ca49a54df53250d75b2:1531227728771/dataview/82b9728f-be67-44ce-a933-e15b25c6039d?bbox=-54.14062500000001,-27.059125784374054,54.14062500000001,66.99884379185184&own_filter=0&api_key=97d1e14723c7f1ce0fea9a303c51adbf947d9689. (Grund: CORS-Anschlag schlug fehl).

This is not a CORS error, but something misconfigured somewhere, since I guess a request to the right API endpoint would bring the needed CORS headers with it.

@kidwellj
Copy link
Member

I see what you mean re: the error message.

Can you give me some more data on where you are within the platform? Maybe a screenshot?

@kidwellj
Copy link
Member

I'm wondering if this might be related to a fix implemented in a future version of the platform I haven't installed yet: cf. CartoDB/cartodb@179c55f#diff-28387736db23022adcc1c45e34c821fa

@almereyda
Copy link
Author

I was also thinking of an upstream issue, interesting you found one.

This seems to be an issue connected with the widgets themselves. None is being displayed.

bildschirmfoto von 2018-07-10 16-28-40

I guess the call to

https://yala/api/v1/map/f93869eee7e31ca49a54df53250d75b2:1531227728771/dataview/82b9728f-be67-44ce-a933-e15b25c6039d?bbox=-54.14062500000001,-27.059125784374054,54.14062500000001,66.99884379185184&own_filter=0&api_key=97d1e14723c7f1ce0fea9a303c51adbf947d9689

should rather target

https://carto.mapping.community/v1/map/...

@almereyda almereyda changed the title CORS violation when editing widgets Widgets are being loaded from a domain named after the current user, not carto.mapping.community Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants