English 中文(简体)
PHP利用来自其他领域的、有用户明确授权的厨师
原标题:PHP accessing cookies from other domain with user explicit authorization

我为第二党网站增添功能,编篡了一个“放矢”框架,而这个网站并非我们,根本没有控制权。

This website has Oauth 2.0 authorization for its clients and save access token in cookies. As I must interact with their own public API, I need to read that token to make my requests.

问题是,什么是最佳战略? I m 不是加拿大的工匠,而是C++的精华。 我想知道,它能否在国际奥协进会内部开放网站,并读作 co,我是否有什么意义?

问题回答

If you really want to do that, open the site in a hidden iframe, the page that the iframe loads should have something like

window.parent.getCookie(/* the cookie value*/);

因此,你可以在主点使用“ get”方法,读到外部网站的 co,然后,你可以使用ja子将 co子价值寄给你的文字,并与其合作或将其作为 co子加以挽救,你也可以使用 j子来挽救 co。

EDIT:红.永远不应储存敏感数据,即使在你自己的网站上也是如此。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签