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

会支持FireFox么? #501

Closed
manduted opened this issue Apr 17, 2024 · 10 comments · Fixed by #519
Closed

会支持FireFox么? #501

manduted opened this issue Apr 17, 2024 · 10 comments · Fixed by #519
Labels
enhancement New feature or request question Further information is requested

Comments

@manduted
Copy link

之前一直用Chrome,现在觉得FF好用,

插件应该是没有问题,兼容性我也拉去FF的兼容测试看了,
顶多也就是Service Worker无效,FF的manifest.json background那有点区别。问题不大,插件拉进去也能正常读取
1

2

3

FF这玩意,会在请求头加个 图三那个,也就是Content-Security-Policy里面的upgrade-insecure-requests。。。U=1,然后就请求地址就变成了 https ..= =。。。顺带试了下反代,尝试改响应U=0,让浏览器不自动up,也没啥用。反而还提示CORS头缺少 'Access-Control-Allow-Origin'。(反代是有加,Access-Control-Allow-Origin: *,method也加了GET ,PUT)

然后google一圈,也没看见有怎么关。。都是让添加。这就很尴尬。Chrome是正常,只是研究下

@gitautomator gitautomator bot added question Further information is requested enhancement New feature or request labels Apr 17, 2024
@richardli1598
Copy link
Contributor

Hello @manduted 目前没有支持计划耶,可以试试这个,看能否转化: https://zhuanlan.zhihu.com/p/163535578

@gygy
Copy link

gygy commented May 26, 2024

Hello @manduted 目前没有支持计划耶,可以试试这个,看能否转化: https://zhuanlan.zhihu.com/p/163535578

我按照以上方法进行操作,提示如下错误。应该是兼容性问题,但不知道如何修改
image

@qingchoulove
Copy link
Collaborator

@manduted @gygy #519 调整了扩展使用api的用法,现在应该已经可以正常在firefox使用,两位有兴趣可以帮忙验证下么?

@gygy
Copy link

gygy commented May 29, 2024

@manduted @gygy #519 调整了扩展使用api的用法,现在应该已经可以正常在firefox使用,两位有兴趣可以帮忙验证下么?

怎么下载?

@manduted
Copy link
Author

@manduted @gygy #519 调整了扩展使用api的用法,现在应该已经可以正常在firefox使用,两位有兴趣可以帮忙验证下么?

好。刚好也出差回来

@manduted
Copy link
Author

@manduted @gygy #519 调整了扩展使用api的用法,现在应该已经可以正常在firefox使用,两位有兴趣可以帮忙验证下么?

今天构建了一下。build和装载进去都是正常

ScreenShot_2024-05-30_17-05-26 ScreenShot_2024-05-30_17-07-52

但还是这个问题:

ScreenShot_2024-05-30_17-05-54

.........我忘了更新服务端。。。

@gygy
Copy link

gygy commented May 31, 2024

怎么下载Firefox插件

@manduted
Copy link
Author

怎么下载Firefox插件

要更新服务端。Core里面Api有更新。插件可以去我repositories 里面。我构建了插件。

@manduted
Copy link
Author

manduted commented May 31, 2024

@manduted @gygy #519 调整了扩展使用api的用法,现在应该已经可以正常在firefox使用,两位有兴趣可以帮忙验证下么?

ScreenShot_2024-05-31_13-14-45

ScreenShot_2024-05-31_13-14-41

ScreenShot_2024-05-31_13-14-32

目前测试情况,不再会Content-Security-Policy强制转为https。能通过healthz。正常存储,和连接。
发送至下载我还没试就是。不过按理来说能过CSP,应该问题不大。

对了,顺带说一句,不知道是我clone下来的原因windows自动给我转了还是项目上Dockerfile文件本身的原因,扒下来格式是,CR LF,不是LF的。当时没注意,生成docker的时候启动不了,hhhhhhh

插件已经生成在我repositories里的firefox-extension文件夹里

Docker在https://hub.docker.com/r/manduted/kubespider-pre

晚点我再部署在nas上试试。

@manduted
Copy link
Author

manduted commented Jun 2, 2024

@qingchoulove 测试没有问题,docker、Firefox均正常工作

@manduted manduted closed this as completed Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants