MaRDI4NFDI / portal-compose

docker-composer repo for mardi
https://portal.mardi4nfdi.de
GNU General Public License v3.0
3 stars 1 forks source link

Can not edit items #407

Closed physikerwelt closed 8 months ago

physikerwelt commented 8 months ago

I was trying to edit

https://portal.mardi4nfdi.de/wiki/Item:Q1333951

But I get the following error message in my terminal

XHRGET https://localhost:8080/w/api.php?action=query&format=json&origin=https://portal.mardi4nfdi.de&meta=tokens&type=csrf&assertuser=Schubotz CORS Failed

why is there localhost?

physikerwelt commented 8 months ago

mardi-wikibase thinks it is localhost

root@5123073e5e0e:/var/www/html# echo $WIKIBASE_HOST; localhost

LizzAlice commented 8 months ago

This does not seem to be fixed yet, tried editing a label and it doesn't work.

physikerwelt commented 8 months ago

What is the error you are seeing?

LizzAlice commented 8 months ago

Es kommt kein Error als Popup oder auf der Seite, in der Konsole steht nur Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://localhost:8080/w/api.php?action=query&format=json&origin=https%3A%2F%2Fportal.mardi4nfdi.de&meta=tokens&type=csrf&assertuser=Larissa. (Reason: CORS request did not succeed). Status code: (null)

physikerwelt commented 8 months ago

I can not reproduce it. I just edited https://portal.mardi4nfdi.de/w/index.php?title=Item%3AQ615869&diff=8735049&oldid=7128300 maybe you can clear your cache and try on another page with a new browser.

LizzAlice commented 8 months ago

Ok, it worked in another browser.