-
Notifications
You must be signed in to change notification settings - Fork 692
Open
Description
Description
Hi, I tried to use serve . for the static file of https://github.com/sweetwisdom/onlyoffice-web-local.
But a request was redirected unexpected and make the path of related inner resource incorrect.
HTTP 11/5/2025 4:02:24 PM ::1 GET /web-apps/apps/documenteditor/main/index.html?_dc=0&lang=zh&customer=ONLYOFFICE&frameEditorId=iframe&parentOrigin=http://localhost:3000&_document=%7B%22title%22%3A%22%E6%96%B0%E5%BB%BA%E6%96%87%E6%A1%A3.docx%22%2C%22url%22%3A%22%E6%96%B0%E5%BB%BA%E6%96%87%E6%A1%A3.docx%22%2C%22fileType%22%3A%22docx%22%2C%22permissions%22%3A%7B%22edit%22%3Atrue%2C%22chat%22%3Afalse%2C%22protect%22%3Afalse%7D%2C%22key%22%3A%22995553f53d8c53970c7b%22%7D&_config=%7B%22lang%22%3A%22zh%22%2C%22customization%22%3A%7B%22help%22%3Afalse%2C%22about%22%3Afalse%2C%22hideRightMenu%22%3Atrue%2C%22features%22%3A%7B%22spellcheck%22%3A%7B%22change%22%3Afalse%7D%7D%2C%22anonymous%22%3A%7B%22request%22%3Afalse%2C%22label%22%3A%22Guest%22%7D%2C%22feedback%22%3Afalse%7D%2C%22canCoAuthoring%22%3Atrue%2C%22canUseHistory%22%3Afalse%2C%22canHistoryClose%22%3Afalse%2C%22canHistoryRestore%22%3Afalse%2C%22canSendEmailAddresses%22%3Afalse%2C%22canRequestEditRights%22%3Afalse%2C%22canRequestClose%22%3Afalse%2C%22canRename%22%3Afalse%2C%22canMakeActionLink%22%3Afalse%2C%22canRequestUsers%22%3Afalse%2C%22canRequestSendNotify%22%3Afalse%2C%22canRequestSaveAs%22%3Afalse%2C%22canRequestInsertImage%22%3Afalse%2C%22canRequestMailMergeRecipients%22%3Afalse%2C%22canRequestCompareFile%22%3Afalse%2C%22canRequestSharingSettings%22%3Afalse%2C%22canRequestCreateNew%22%3Afalse%2C%22canRequestReferenceData%22%3Afalse%2C%22canRequestOpen%22%3Afalse%2C%22canRequestSelectDocument%22%3Afalse%2C%22canRequestSelectSpreadsheet%22%3Afalse%2C%22canRequestReferenceSource%22%3Afalse%7D
HTTP 11/5/2025 4:02:24 PM ::1 Returned 301 in 1 ms
HTTP 11/5/2025 4:02:24 PM ::1 GET /web-apps/apps/documenteditor/main/index
HTTP 11/5/2025 4:02:24 PM ::1 Returned 301 in 1 ms
HTTP 11/5/2025 4:02:24 PM ::1 GET /web-apps/apps/documenteditor/main
HTTP 11/5/2025 4:02:24 PM ::1 Returned 200 in 3 ms
HTTP 11/5/2025 4:02:24 PM ::1 GET /apps/documenteditor/main/resources/css/app.css
HTTP 11/5/2025 4:02:24 PM ::1 Returned 404 in 8 ms
If I use http-server ., it's fine.
[2025-11-05T08:07:34.841Z] "GET /web-apps/apps/documenteditor/main/index.html?_dc=0&lang=zh&customer=ONLYOFFICE&frameEditorId=iframe&parentOrigin=http://127.0.0.1:8080&_document=%7B%22title%22%3A%22%E6%96%B0%E5%BB%BA%E6%96%87%E6%A1%A3.docx%22%2C%22url%22%3A%22%E6%96%B0%E5%BB%BA%E6%96%87%E6%A1%A3.docx%22%2C%22fileType%22%3A%22docx%22%2C%22permissions%22%3A%7B%22edit%22%3Atrue%2C%22chat%22%3Afalse%2C%22protect%22%3Afalse%7D%2C%22key%22%3A%2207e098ca3d64607519c7%22%7D&_config=%7B%22lang%22%3A%22zh%22%2C%22customization%22%3A%7B%22help%22%3Afalse%2C%22about%22%3Afalse%2C%22hideRightMenu%22%3Atrue%2C%22features%22%3A%7B%22spellcheck%22%3A%7B%22change%22%3Afalse%7D%7D%2C%22anonymous%22%3A%7B%22request%22%3Afalse%2C%22label%22%3A%22Guest%22%7D%2C%22feedback%22%3Afalse%7D%2C%22canCoAuthoring%22%3Atrue%2C%22canUseHistory%22%3Afalse%2C%22canHistoryClose%22%3Afalse%2C%22canHistoryRestore%22%3Afalse%2C%22canSendEmailAddresses%22%3Afalse%2C%22canRequestEditRights%22%3Afalse%2C%22canRequestClose%22%3Afalse%2C%22canRename%22%3Afalse%2C%22canMakeActionLink%22%3Afalse%2C%22canRequestUsers%22%3Afalse%2C%22canRequestSendNotify%22%3Afalse%2C%22canRequestSaveAs%22%3Afalse%2C%22canRequestInsertImage%22%3Afalse%2C%22canRequestMailMergeRecipients%22%3Afalse%2C%22canRequestCompareFile%22%3Afalse%2C%22canRequestSharingSettings%22%3Afalse%2C%22canRequestCreateNew%22%3Afalse%2C%22canRequestReferenceData%22%3Afalse%2C%22canRequestOpen%22%3Afalse%2C%22canRequestSelectDocument%22%3Afalse%2C%22canRequestSelectSpreadsheet%22%3Afalse%2C%22canRequestReferenceSource%22%3Afalse%7D" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 Edg/142.0.0.0"
[2025-11-05T08:07:34.894Z] "GET /web-apps/apps/documenteditor/main/resources/css/app.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 Edg/142.0.0.0"
Here is the comparation of the result of curl.
Details
Liu.D.H web-apps 10m 21.744s 15:44 > curl -v "http://localhost:3000/web-apps/apps/documenteditor/main/index.html?_dc=0&lang=zh&customer=ONLYOFFICE&frameEditorId=iframe&parentOrigin=http://localhost:3000&_document=%7B%22title%22%3A%22%E6%96%B0%E5%BB%BA%E6%96%87%E6%A1%A3.docx%22%2C%22url%22%3A%22%E6%96%B0%E5%BB%BA%E6%96%87%E6%A1%A3.docx%22%2C%22fileType%22%3A%22docx%22%2C%22permissions%22%3A%7B%22edit%22%3Atrue%2C%22chat%22%3Afalse%2C%22protect%22%3Afalse%7D%2C%22key%22%3A%22995553f53d8c53970c7b%22%7D&_config=%7B%22lang%22%3A%22zh%22%2C%22customization%22%3A%7B%22help%22%3Afalse%2C%22about%22%3Afalse%2C%22hideRightMenu%22%3Atrue%2C%22features%22%3A%7B%22spellcheck%22%3A%7B%22change%22%3Afalse%7D%7D%2C%22anonymous%22%3A%7B%22request%22%3Afalse%2C%22label%22%3A%22Guest%22%7D%2C%22feedback%22%3Afalse%7D%2C%22canCoAuthoring%22%3Atrue%2C%22canUseHistory%22%3Afalse%2C%22canHistoryClose%22%3Afalse%2C%22canHistoryRestore%22%3Afalse%2C%22canSendEmailAddresses%22%3Afalse%2C%22canRequestEditRights%22%3Afalse%2C%22canRequestClose%22%3Afalse%2C%22canRename%22%3Afalse%2C%22canMakeActionLink%22%3Afalse%2C%22canRequestUsers%22%3Afalse%2C%22canRequestSendNotify%22%3Afalse%2C%22canRequestSaveAs%22%3Afalse%2C%22canRequestInsertImage%22%3Afalse%2C%22canRequestMailMergeRecipients%22%3Afalse%2C%22canRequestCompareFile%22%3Afalse%2C%22canRequestSharingSettings%22%3Afalse%2C%22canRequestCreateNew%22%3Afalse%2C%22canRequestReferenceData%22%3Afalse%2C%22canRequestOpen%22%3Afalse%2C%22canRequestSelectDocument%22%3Afalse%2C%22canRequestSelectSpreadsheet%22%3Afalse%2C%22canRequestReferenceSource%22%3Afalse%7D"
* Host localhost:3000 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:3000...
* Established connection to localhost (::1 port 3000) from ::1 port 52630
* using HTTP/1.x
> GET /web-apps/apps/documenteditor/main/index.html?_dc=0&lang=zh&customer=ONLYOFFICE&frameEditorId=iframe&parentOrigin=http://localhost:3000&_document=%7B%22title%22%3A%22%E6%96%B0%E5%BB%BA%E6%96%87%E6%A1%A3.docx%22%2C%22url%22%3A%22%E6%96%B0%E5%BB%BA%E6%96%87%E6%A1%A3.docx%22%2C%22fileType%22%3A%22docx%22%2C%22permissions%22%3A%7B%22edit%22%3Atrue%2C%22chat%22%3Afalse%2C%22protect%22%3Afalse%7D%2C%22key%22%3A%22995553f53d8c53970c7b%22%7D&_config=%7B%22lang%22%3A%22zh%22%2C%22customization%22%3A%7B%22help%22%3Afalse%2C%22about%22%3Afalse%2C%22hideRightMenu%22%3Atrue%2C%22features%22%3A%7B%22spellcheck%22%3A%7B%22change%22%3Afalse%7D%7D%2C%22anonymous%22%3A%7B%22request%22%3Afalse%2C%22label%22%3A%22Guest%22%7D%2C%22feedback%22%3Afalse%7D%2C%22canCoAuthoring%22%3Atrue%2C%22canUseHistory%22%3Afalse%2C%22canHistoryClose%22%3Afalse%2C%22canHistoryRestore%22%3Afalse%2C%22canSendEmailAddresses%22%3Afalse%2C%22canRequestEditRights%22%3Afalse%2C%22canRequestClose%22%3Afalse%2C%22canRename%22%3Afalse%2C%22canMakeActionLink%22%3Afalse%2C%22canRequestUsers%22%3Afalse%2C%22canRequestSendNotify%22%3Afalse%2C%22canRequestSaveAs%22%3Afalse%2C%22canRequestInsertImage%22%3Afalse%2C%22canRequestMailMergeRecipients%22%3Afalse%2C%22canRequestCompareFile%22%3Afalse%2C%22canRequestSharingSettings%22%3Afalse%2C%22canRequestCreateNew%22%3Afalse%2C%22canRequestReferenceData%22%3Afalse%2C%22canRequestOpen%22%3Afalse%2C%22canRequestSelectDocument%22%3Afalse%2C%22canRequestSelectSpreadsheet%22%3Afalse%2C%22canRequestReferenceSource%22%3Afalse%7D HTTP/1.1
> Host: localhost:3000
> User-Agent: curl/8.16.0
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Location: /web-apps/apps/documenteditor/main/index
< Date: Wed, 05 Nov 2025 08:17:53 GMT
< Connection: keep-alive
< Keep-Alive: timeout=5
< Transfer-Encoding: chunked
<
* Connection #0 to host localhost:3000 left intact
Liu.D.H web-apps 179ms 16:17 >
Liu.D.H web-apps 0ms 16:17 > curl -v "http://localhost:8080/web-apps/apps/documenteditor/main/index.html?_dc=0&lang=
zh&customer=ONLYOFFICE&frameEditorId=iframe&parentOrigin=http://localhost:3000&_document=%7B%22title%22%3A%22%E6%96%B0%E
5%BB%BA%E6%96%87%E6%A1%A3.docx%22%2C%22url%22%3A%22%E6%96%B0%E5%BB%BA%E6%96%87%E6%A1%A3.docx%22%2C%22fileType%22%3A%22do
cx%22%2C%22permissions%22%3A%7B%22edit%22%3Atrue%2C%22chat%22%3Afalse%2C%22protect%22%3Afalse%7D%2C%22key%22%3A%22995553
f53d8c53970c7b%22%7D&_config=%7B%22lang%22%3A%22zh%22%2C%22customization%22%3A%7B%22help%22%3Afalse%2C%22about%22%3Afals
e%2C%22hideRightMenu%22%3Atrue%2C%22features%22%3A%7B%22spellcheck%22%3A%7B%22change%22%3Afalse%7D%7D%2C%22anonymous%22%
3A%7B%22request%22%3Afalse%2C%22label%22%3A%22Guest%22%7D%2C%22feedback%22%3Afalse%7D%2C%22canCoAuthoring%22%3Atrue%2C%2
2canUseHistory%22%3Afalse%2C%22canHistoryClose%22%3Afalse%2C%22canHistoryRestore%22%3Afalse%2C%22canSendEmailAddresses%2
2%3Afalse%2C%22canRequestEditRights%22%3Afalse%2C%22canRequestClose%22%3Afalse%2C%22canRename%22%3Afalse%2C%22canMakeAct
ionLink%22%3Afalse%2C%22canRequestUsers%22%3Afalse%2C%22canRequestSendNotify%22%3Afalse%2C%22canRequestSaveAs%22%3Afalse
%2C%22canRequestInsertImage%22%3Afalse%2C%22canRequestMailMergeRecipients%22%3Afalse%2C%22canRequestCompareFile%22%3Afal
se%2C%22canRequestSharingSettings%22%3Afalse%2C%22canRequestCreateNew%22%3Afalse%2C%22canRequestReferenceData%22%3Afalse
%2C%22canRequestOpen%22%3Afalse%2C%22canRequestSelectDocument%22%3Afalse%2C%22canRequestSelectSpreadsheet%22%3Afalse%2C%
22canRequestReferenceSource%22%3Afalse%7D"
* Host localhost:8080 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:8080...
* Trying 127.0.0.1:8080...
* Established connection to localhost (127.0.0.1 port 8080) from 127.0.0.1 port 57355
* using HTTP/1.x
> GET /web-apps/apps/documenteditor/main/index.html?_dc=0&lang=zh&customer=ONLYOFFICE&frameEditorId=iframe&parentOrigin=http://localhost:3000&_document=%7B%22title%22%3A%22%E6%96%B0%E5%BB%BA%E6%96%87%E6%A1%A3.docx%22%2C%22url%22%3A%22%E6%96%B0%E5%BB%BA%E6%96%87%E6%A1%A3.docx%22%2C%22fileType%22%3A%22docx%22%2C%22permissions%22%3A%7B%22edit%22%3Atrue%2C%22chat%22%3Afalse%2C%22protect%22%3Afalse%7D%2C%22key%22%3A%22995553f53d8c53970c7b%22%7D&_config=%7B%22lang%22%3A%22zh%22%2C%22customization%22%3A%7B%22help%22%3Afalse%2C%22about%22%3Afalse%2C%22hideRightMenu%22%3Atrue%2C%22features%22%3A%7B%22spellcheck%22%3A%7B%22change%22%3Afalse%7D%7D%2C%22anonymous%22%3A%7B%22request%22%3Afalse%2C%22label%22%3A%22Guest%22%7D%2C%22feedback%22%3Afalse%7D%2C%22canCoAuthoring%22%3Atrue%2C%22canUseHistory%22%3Afalse%2C%22canHistoryClose%22%3Afalse%2C%22canHistoryRestore%22%3Afalse%2C%22canSendEmailAddresses%22%3Afalse%2C%22canRequestEditRights%22%3Afalse%2C%22canRequestClose%22%3Afalse%2C%22canRename%22%3Afalse%2C%22canMakeActionLink%22%3Afalse%2C%22canRequestUsers%22%3Afalse%2C%22canRequestSendNotify%22%3Afalse%2C%22canRequestSaveAs%22%3Afalse%2C%22canRequestInsertImage%22%3Afalse%2C%22canRequestMailMergeRecipients%22%3Afalse%2C%22canRequestCompareFile%22%3Afalse%2C%22canRequestSharingSettings%22%3Afalse%2C%22canRequestCreateNew%22%3Afalse%2C%22canRequestReferenceData%22%3Afalse%2C%22canRequestOpen%22%3Afalse%2C%22canRequestSelectDocument%22%3Afalse%2C%22canRequestSelectSpreadsheet%22%3Afalse%2C%22canRequestReferenceSource%22%3Afalse%7D HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/8.16.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Accept-Ranges: bytes
< cache-control: max-age=3600
< last-modified: Mon, 21 Jul 2025 07:17:51 GMT
< etag: W/"2533274809820224-104737-2025-07-21T07:17:51.000Z"
< content-length: 104737
< content-type: text/html; charset=UTF-8
< Date: Wed, 05 Nov 2025 08:18:17 GMT
< Connection: keep-alive
< Keep-Alive: timeout=5
<
<!DOCTYPE html>
......
I also tested curl -v "http://localhost:3000/web-apps/apps/documenteditor/main/index.html", it's redirected even the local file of /web-apps/apps/documenteditor/main/index.html exists acturally.
> curl -v "http://localhost:3000/web-apps/apps/documenteditor/main/index.html"
* Host localhost:3000 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:3000...
* Established connection to localhost (::1 port 3000) from ::1 port 50601
* using HTTP/1.x
> GET /web-apps/apps/documenteditor/main/index.html HTTP/1.1
> Host: localhost:3000
> User-Agent: curl/8.16.0
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Location: /web-apps/apps/documenteditor/main/index
< Date: Wed, 05 Nov 2025 08:35:58 GMT
< Connection: keep-alive
< Keep-Alive: timeout=5
< Transfer-Encoding: chunked
<
* Connection #0 to host localhost:3000 left intact
Library version
14.2.5
Node version
v24.11.0
Metadata
Metadata
Assignees
Labels
No labels