Closed pmario closed 4 years ago
Also just trying this for the first time. In order to get the page to load I had to run in it a webserver - overture doesn't seem to work opening from the filesystem. Then the default option selected is to connect to fastmail JMAP, but this didn't work for me due to CORS.
Also happening for me.
The fixtures.js
line is already commented-out but JMAP.auth.didAuthenticate
can't be found in state.js
.
Could someone please shed some light on this? @neilj
same here, however i got this working by running a web server, but still seeing CORS errors in the console...
using the latest version of jmap-js, broke my current working setup due to CORS issues
@s77rt can you share your "almost" working setup. May be we can reproduce it and find out the right CORS settings needed.
@pmario nothing special I just used the library that comes with this repo (jmap-demo-webmail), it kinda worked but still showing some cors errors. Then tried the latest library (jmap-js) hoping that it will fix the cors errors, actually it made it wrose and the webmail was not usable at all. (showing other cors errors)
I believe theres only 2 ways to fix the cors issue.
@platy
I think it would be easier to setup a self hosted jmap server. (any suggestions on that? cyrus or james?)
the webmail is generating a bunch of errors, not sure if it's related to CORS or not.
even there is a weird 401 response for fastmail events endpoint https://jmap.fastmail.com/event/
no idea if it's fastmail's bug, or they intended to limit event access for some reason, or again it's the library fault
:/
Sorry for the delay in getting to this. The fixtures are a bit ropey so now you can (fairly easily) talk to a real server I've ripped them out altogether. I've updated the readme but basically:
@neilj ... If I open the link to https://jmap.io/jmap-demo-webmail/ I still get a white page only. ... No prompt for anything.
Using FF 75, ubuntu 20.04
Dev console says:
Loading failed for the <script> with source “https://jmap.io/jmap-demo-webmail/libs/Overture.js”. jmap-demo-webmail:12:1
ReferenceError: O is not defined
timezones-raw.js:7:1
ReferenceError: O is not defined
JMAP.js:79:13
ReferenceError: O is not defined
MailboxSourceView.js:11:12
ReferenceError: O is not defined
MailboxItemView.js:11:12
ReferenceError: O is not defined
ThreadMessageView.js:11:12
ReferenceError: O is not defined
MessageView.js:11:12
ReferenceError: O is not defined
EventItemView.js:11:12
ReferenceError: O is not defined
state.js:9:1
ReferenceError: O is not defined
view.js:9:1
@pmario hmm it's working fine from my side, perhaps a cache issue? go to https://jmap.io/jmap-demo-webmail/libs/Overture.js and press CTRL+F5 then try again
hmmm. Thx for your time. ... It seems uBlock Origin needs to be disabled for this page.
hmmm. Thx for your time. ... It seems uBlock Origin needs to be disabled for this page.
Adblock Plus block Overture.js too
@neilj - It seems readme.md Install imo needs an update.
JMAP.auth.didAuthenticate
in state.jsAND
Error console says: