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

Chrome & CORS #1

Open
xgqfrms-GitHub opened this issue Jan 22, 2018 · 7 comments
Open

Chrome & CORS #1

xgqfrms-GitHub opened this issue Jan 22, 2018 · 7 comments
Labels
--disable-web-security --disable-web-security Chrome & CORS & Proxy Chrome & CORS & Proxy Chrome & CORS Chrome & CORS

Comments

@xgqfrms-GitHub
Copy link

Chrome & CORS

image

https://www.cnblogs.com/xgqfrms/

http://www.cnblogs.com/xgqfrms/p/8327473.html

http://www.cnblogs.com/linda586586/p/4351452.html

@xgqfrms-GitHub
Copy link
Author

@xgqfrms-GitHub
Copy link
Author

CORS

    componentDidMount() {
        // 'Access-Control-Allow-Origin' header 
        // set the request's mode to 'no-cors' 
        // const url = `http://10.1.5.31:8081/http/manage/admin?{"Admin":"report","Action":"GetAllLoad","WriteType":"json"}`;
        const url = `http://localhost:7777/info/`;
        const init = {
            method: 'GET',
            headers: {
                'Accept': 'application/json',
                "Access-Control-Allow-Origin": "*",
                'Content-Type': 'application/json'
            },
            mode: 'no-cors'
        };
        const request_url = new Request(url, init);
        fetch(request_url)
        .then((response) => response.json())
        .then((json)=> {
            console.log(`json = ${json}`);
            console.log(`json.length = ${json.length}`);
            /* json = json.Info;
            console.log(`json.Info = ${json.Info}`);
            console.log(`json.Info.length = ${json.Info.length}`); */
            const datas = json.map(
                (data) => {
                    console.log(`data`, data)
                    return data;
                }
            );
            console.log(`datas = ${JSON.stringify(datas)}`);
            return datas;
        })
        .then((datas)=> {
            console.log(`datas new = ${JSON.stringify(datas)}`);
            return this.setState({
                datas: datas
            });
        });
    }

https://github.com/gildata/RAIO/issues/49

@xgqfrms-GitHub
Copy link
Author

xgqfrms-GitHub commented Jan 22, 2018

--disable-web-security

Chrome CORS

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir=D:\Chrome

"C:\Program Files (x86)\Google\Chrome\Application"

@xgqfrms-GitHub
Copy link
Author

chrome://chrome-urls/

https://www.cnblogs.com/laden666666/p/5544572.html

chrome://flags/

Repository owner locked and limited conversation to collaborators Apr 27, 2018
@xgqfrms xgqfrms added the Chrome & CORS Chrome & CORS label Apr 27, 2018
@xgqfrms xgqfrms added the Chrome & CORS & Proxy Chrome & CORS & Proxy label Jun 24, 2019
@xgqfrms xgqfrms pinned this issue Jun 24, 2019
@xgqfrms
Copy link
Owner

xgqfrms commented Sep 22, 2020

--disable-web-security

Chrome CORS / Chrome 多开,应用分身

https://www.cnblogs.com/xgqfrms/p/9467482.html

image

@xgqfrms xgqfrms added the --disable-web-security --disable-web-security label Sep 22, 2020
@xgqfrms
Copy link
Owner

xgqfrms commented Sep 22, 2020

CORS All In One

https://www.cnblogs.com/xgqfrms/p/13706737.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
--disable-web-security --disable-web-security Chrome & CORS & Proxy Chrome & CORS & Proxy Chrome & CORS Chrome & CORS
Projects
None yet
Development

No branches or pull requests

2 participants