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

关于写好umami,设置里头的配置项之后,出现了访问不了的情况 #10

Open
OSNewbie opened this issue Mar 6, 2023 · 5 comments

Comments

@OSNewbie
Copy link

OSNewbie commented Mar 6, 2023

那个ID是填对的,站点地址就是域名,不加http或者https,那个共享链接也是对的,他就是那个工具旁边访问那个umami 会访问不了,会出现这个报错提示
net::ERR_BLOCKED_BY_RESPONSE 由于web服务不允许 iframe 引用,需要在 web服务中设置 X-Frame-Options HttpServletResponse response.setHeader (“x- frame -options”, “DENY”); 设置有3种参数 请问有什么解决办法?,

@nexus181
Copy link

请问一下怎么查看站点ID啊?

@ruibaby
Copy link
Member

ruibaby commented Apr 4, 2023

@yulongsa
Copy link

server{
listen 443 ssl http2;
server_name [umami.domain.com];
#...
add_header Access-Control-Allow-Origin 'https://halo.domain.com';
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
if ($request_method = 'OPTIONS') {
return 204;
}

add_header Content-Security-Policy 'frame-ancestors halo.domain.com';
location / {
    #...
    proxy_hide_header 'Access-Control-Allow-Origin';
    proxy_hide_header 'Content-Security-Policy';
}

}
添加在哪里呢,宝塔的反代配置提示错误

@OSNewbie
Copy link
Author

OSNewbie commented Mar 25, 2024

server{ listen 443 ssl http2; server_name [umami.domain.com]; #... add_header Access-Control-Allow-Origin 'https://halo.domain.com'; add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization'; if ($request_method = 'OPTIONS') { return 204; }

add_header Content-Security-Policy 'frame-ancestors halo.domain.com';
location / {
    #...
    proxy_hide_header 'Access-Control-Allow-Origin';
    proxy_hide_header 'Content-Security-Policy';
}

} 添加在哪里呢,宝塔的反代配置提示错误

这个好像不是反向代理那里填的,可能在配置文件那里
反向代理那里填容器的端口

103203dbxk7bbb3ohizexh

@OSNewbie
Copy link
Author

请问一下怎么查看站点ID啊?

站点 ID:可在 Umami 的设置 -> 网站 -> 编辑中找到

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants