Giter Site home page Giter Site logo

gcollin / cookie-aware-cors-proxy Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 314 KB

A proxy handling cors handshake with smart cookie and redirection management

License: GNU Affero General Public License v3.0

TypeScript 87.91% JavaScript 6.43% HTML 5.66%

cookie-aware-cors-proxy's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

cookie-aware-cors-proxy's Issues

Crash with rimraf: missing path error

When using cac-proxy running chromium, Sometimes I get the following error that crashes everything:

Sep 19 00:12:25 systemd[1]: Started Cookie-Aware-Cors-Proxy.
/var/log/cac-proxy/cac-proxy.log
lmp0er7hgy2lt641i37: Changing sec-fetch-site from cross-site to same-site
lmp0er7hgy2lt641i37: Changing referer from https://dont-code.net/ to https://jhu6zvksfy-dsn.algolia.net/
lmp0er7hgy2lt641i37: Sending request: {
url: 'https://jhu6zvksfy-dsn.algolia.net/1/indexes/*/queries?x-algolia-agent=Algolia+for+JavaScript+(3.35.1);+Browser;+Magento2+integration+(3.6.0);+autocomplete.js+0.38.0&x-algolia-application-id=JHU6ZVKSFY&x-algolia-api-key=YTYyYzkyNzgyZDliZTZlMDk1OGE1MDQwNjRkYWY1ZmY4ZTE5OWZhYmU4ZGUyNTM2NDFjNmU4YjllNWMwNmJmNXRhZ0ZpbHRlcnM9\n',
method: 'POST',
headers: {
connection: 'keep-alive',
'content-length': '593',
'sec-ch-ua': '"Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117"',
accept: 'application/json, text/plain, /',
'content-type': 'application/json',
'sec-ch-ua-mobile': '?1',
'user-agent': 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Mobile Safari/537.36',
'sec-ch-ua-platform': '"Android"',
origin: 'https://jhu6zvksfy-dsn.algolia.net',
'sec-fetch-site': 'same-site',
'sec-fetch-mode': 'cors',
'sec-fetch-dest': 'empty',
referer: 'https://jhu6zvksfy-dsn.algolia.net/',
'accept-encoding': 'gzip, deflate, br',
'accept-language': 'fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7'
},
maxRedirects: 0,
validateStatus: [Function (anonymous)],
responseType: 'stream',
decompress: false,
data: { requests: [ [Object], [Object], [Object] ] }
}
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^

AssertionError [ERR_ASSERTION]: rimraf: missing path
at rimraf (/opt/yunohost/cac-proxy/package/node_modules/rimraf/rimraf.js:54:3)
at Plugin.deleteUserDataDir (/opt/yunohost/cac-proxy/package/node_modules/puppeteer-extra-plugin-user-data-dir/index.js:71:5)
at Plugin.onDisconnected (/opt/yunohost/cac-proxy/package/node_modules/puppeteer-extra-plugin-user-data-dir/index.js:118:12)
at /opt/yunohost/cac-proxy/package/node_modules/puppeteer-core/lib/cjs/third_party/mitt/index.js:3:248
at Array.map ()
at Object.emit (/opt/yunohost/cac-proxy/package/node_modules/puppeteer-core/lib/cjs/third_party/mitt/index.js:3:232)
at CDPBrowser.emit (/opt/yunohost/cac-proxy/package/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js:87:22)
at /opt/yunohost/cac-proxy/package/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js:76:18
at /opt/yunohost/cac-proxy/package/node_modules/puppeteer-core/lib/cjs/third_party/mitt/index.js:3:248
at Array.map () {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: undefined,
expected: true,
operator: '=='
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.