【发布时间】:2016-03-27 16:00:21
【问题描述】:
我的服务器正在运行 Baikal 和 nginx,现在我想添加前端 InfCloud(可能称为 CalDavZap 或 CalDavMATE)。
贝加尔湖在https://mydomain:202/运行
我有calcard.php 来访问日历和联系人。该文件在https://mydomain:202/calcard.php/下可访问
现在我希望 InfCloud 在https://mydomain/cal 下运行。
用户和密码是test
我已经可以访问登录页面,但是登录时出现以下错误:
jquery-2.1.4.min.js:4 拒绝连接到“https://test:test@mydomain:202/calcard.php/principals/”,因为它违反了以下内容安全策略指令:“default-src 'self' 'unsafe-inline' 'unsafe-eval' ”。请注意,'connect-src' 没有显式设置,因此 'default-src' 用作备用。
和
[netCheckAndCreateConfiguration: 'PROPFIND https://mydomain:202/calcard.php/principals/'] 代码:'0' 状态:'error' - 参见https://www.inf-it.com/infcloud/readme.txt(跨域设置)
这些是我的配置:
InfCloud config.js
var globalNetworkCheckSettings={
href: 'https://mydomain:202/calcard.php/principals/',
timeOut: 90000,
lockTimeOut: 10000,
//checkContentType: true,
settingsAccount: true,
delegation: true,
additionalResources: [],
hrefLabel: null,
forceReadOnly: null,
ignoreAlarms: false,
backgroundCalendars: []
}
var globalUseJqueryAuth=true;
还有 nginx
location /cal {
root /path/to/infcloud;
dav_methods PUT DELETE MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
index index.html;
access_log /var/log/nginx/infcloud.access.log;
error_log /var/log/nginx/infcloud.error.log;
}
【问题讨论】:
标签: nginx http-headers