Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | A valid /chat-ping request should set the Access-Control-Allow-Origin in the reply header, to avoid client-side errors. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
ffb40fd8940c59a72fd68a0737f32d0c |
| User & Date: | drh 2020-12-24 19:28:04.221 |
Context
|
2020-12-24
| ||
| 20:18 | Initial impl of buttons to load older chat messages. The UI code is a bit more involved than might seem necessary, but is so largely because it needs to avoid UI/ajax race conditions. ... (check-in: 6d676f6eb5 user: stephan tags: trunk) | |
| 19:28 | A valid /chat-ping request should set the Access-Control-Allow-Origin in the reply header, to avoid client-side errors. ... (check-in: ffb40fd894 user: drh tags: trunk) | |
| 19:15 | Automatically purge older chat messages using the chat-keep-count and chat-keep-days settings to determine which messages to delete. ... (check-in: 35fbf4995d user: drh tags: trunk) | |
Changes
Changes to src/chat.c.
| ︙ | ︙ | |||
585 586 587 588 589 590 591 |
**
** HTTP requests coming to this page from a loopback IP address cause
** a single \007 (bel) character to be written on the controlling TTY.
** This is used to implement an audiable alert by local web clients.
*/
void chat_ping_webpage(void){
const char *zIpAddr = PD("REMOTE_ADDR","nil");
| | > > > | 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 |
**
** HTTP requests coming to this page from a loopback IP address cause
** a single \007 (bel) character to be written on the controlling TTY.
** This is used to implement an audiable alert by local web clients.
*/
void chat_ping_webpage(void){
const char *zIpAddr = PD("REMOTE_ADDR","nil");
if( cgi_is_loopback(zIpAddr) ){
cgi_append_header("Access-Control-Allow-Origin: *\r\n");
fputc(7, stderr);
}
}
/*
** COMMAND: chat
**
** Usage: %fossil chat ?URL?
**
|
| ︙ | ︙ |