Content-Security-Policy 指令 'worker-src' 在当前禁用的标志后面实现
The Content-Security-Policy directive 'worker-src' is implemented behind a flag which is currently disabled
我正在尝试根据用户 permission.I 从保管箱中获取文件和文件夹 permission.I 正在为此开发 API。
在保管箱 apps 中,我创建了 application.And,我得到了 App key,App secret
。我还给出了重定向 url 作为 OAuth2 的本地主机文件路径。
PHP:
$webAuth = new Dropbox\WebAuth($appInfo,$appName,'http://localhost/dropboxapi/
dropbox_finish.php',$csrfTokenStore);
$authUrl = $webAuth->start();
并且我获得了身份验证 url。当我执行 url 时,我得到了这个。
当我点击允许时应该重定向到我提到的内容(localhost/dropboxapi/
dropbox_finish.php) 在保管箱中 application.This 重定向没有发生,我得到了错误(在标题中),例如 that.Please 帮助在哪里检查以及如何解决。
错误:
我解决了 dropbox 应用程序中提到的重定向文件中的 problem.Actually,我添加了 header 来定位 index.This 是问题所在。
实际上重定向成功是因为 header 它循环 again.I 删除了 localhost/dropboxapi/ dropbox_finish.php
中的 header
更新:
list($accessToken,$userId) = $webAuth->finish($_GET);
$_session['accessToken']=$accessToken;
//Header('Location: index.php');
我正在尝试根据用户 permission.I 从保管箱中获取文件和文件夹 permission.I 正在为此开发 API。
在保管箱 apps 中,我创建了 application.And,我得到了 App key,App secret
。我还给出了重定向 url 作为 OAuth2 的本地主机文件路径。
PHP:
$webAuth = new Dropbox\WebAuth($appInfo,$appName,'http://localhost/dropboxapi/
dropbox_finish.php',$csrfTokenStore);
$authUrl = $webAuth->start();
并且我获得了身份验证 url。当我执行 url 时,我得到了这个。
当我点击允许时应该重定向到我提到的内容(localhost/dropboxapi/ dropbox_finish.php) 在保管箱中 application.This 重定向没有发生,我得到了错误(在标题中),例如 that.Please 帮助在哪里检查以及如何解决。
错误:
我解决了 dropbox 应用程序中提到的重定向文件中的 problem.Actually,我添加了 header 来定位 index.This 是问题所在。
实际上重定向成功是因为 header 它循环 again.I 删除了 localhost/dropboxapi/ dropbox_finish.php
更新:
list($accessToken,$userId) = $webAuth->finish($_GET);
$_session['accessToken']=$accessToken;
//Header('Location: index.php');