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

CORS ERROR NOT WORKING BROWSER EXTENSIONS #237

Open
makindotcc opened this issue May 27, 2024 · 3 comments
Open

CORS ERROR NOT WORKING BROWSER EXTENSIONS #237

makindotcc opened this issue May 27, 2024 · 3 comments

Comments

@makindotcc
Copy link

one month ago mainnet was working, but devnet not. today I CANT ACCESS DECENTRALIZED MAIN NETWORK OF WEB3!!!!! HOW CAN I ACCESS MY UGLY MONKEY IMAGES IF I DONT HAVE 32TB HARD DRIVE FOR MY OWN RPC? thank you from the mountain when issue will be resolved

Welcome to Node.js v21.6.1.
Type ".help" for more information.
>  fetch("https://api.phantom.app/tokens/v1?enableToken2022=true&isPartialResponseEnabled=true", {
...     "credentials": "include",
...     "headers": {
...         "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0",
...         "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8",
...         "Accept-Language": "pl,en-US;q=0.7,en;q=0.3",
...         "Alt-Used": "api.phantom.app",
...         "Upgrade-Insecure-Requests": "1",
...         "Sec-Fetch-Dest": "document",
...         "Sec-Fetch-Mode": "navigate",
...         "Sec-Fetch-Site": "cross-site",
...         "Priority": "u=1"
...     },
...     "method": "OPTIONS",
...     "mode": "cors"
... }).then(r => console.log("r", r.headers));
Promise {
  <pending>,
  [Symbol(async_id_symbol)]: 68,
  [Symbol(trigger_async_id_symbol)]: 67
}
> r HeadersList {
  cookies: [
    '__cf_bm=uGNRXJjde1BhxRdDXKhw.JByqoON4vrJkM6TBy1DRXo-1716841833-1.0.1.1-Fp1bsGe8e9zaHr3TzKDmoemzI6UmGXtn3xvfSkX3QrDm8mvAx.kUq2I0p46FRQQZn_gB_TOqKCj9gIq6oJvSwQ; path=/; expires=Mon, 27-May-24 21:00:33 GMT; domain=.phantom.app; HttpOnly; Secure; SameSite=None',
    '_cfuvid=HbQ_5iW.NJKV479.ohp7kJKEjIZoRsXi0tEe6zQolFc-1716841833403-0.0.1.1-604800000; path=/; domain=.phantom.app; HttpOnly; Secure; SameSite=None'
  ],
  [Symbol(headers map)]: Map(16) {
    'date' => { name: 'Date', value: 'Mon, 27 May 2024 20:30:33 GMT' },
    'connection' => { name: 'Connection', value: 'keep-alive' },
    'x-amzn-requestid' => {
      name: 'x-amzn-requestid',
      value: 'ad6843f0-a5a3-4efc-bee3-3b28bd12dd61'
    },
    'x-version' => {
      name: 'x-version',
      value: 'f8ec8f50be93e84aa10ba0542ab981a21e18b969/endpoints.zip'
    },
    'access-control-allow-origin' => { name: 'access-control-allow-origin', value: '*' },
    'access-control-allow-headers' => {
      name: 'access-control-allow-headers',
      value: 'Content-Type,X-API-KEY,root-group-api-key,esp-api-key' // no phantom headers
    },
    'x-amzn-remapped-content-length' => { name: 'x-amzn-remapped-content-length', value: '0' },
    'x-amz-apigw-id' => { name: 'x-amz-apigw-id', value: 'YcoIgHfp4osEraQ=' },
    'access-control-allow-methods' => {
      name: 'access-control-allow-methods',
      value: 'POST,GET,OPTIONS,DELETE'
    },
    'x-amzn-trace-id' => {
      name: 'x-amzn-trace-id',
      value: 'Root=1-6654ed69-66b0895109927f8205c62f2f;Parent=0c596c9bbfb277af;Sampled=0;lineage=5db7b81f:0'
    },
    'access-control-max-age' => { name: 'access-control-max-age', value: '86400' },
    'cf-cache-status' => { name: 'CF-Cache-Status', value: 'DYNAMIC' },
    'set-cookie' => {
      name: 'Set-Cookie',
      value: '__cf_bm=uGNRXJjde1BhxRdDXKhw.JByqoON4vrJkM6TBy1DRXo-1716841833-1.0.1.1-Fp1bsGe8e9zaHr3TzKDmoemzI6UmGXtn3xvfSkX3QrDm8mvAx.kUq2I0p46FRQQZn_gB_TOqKCj9gIq6oJvSwQ; path=/; expires=Mon, 27-May-24 21:00:33 GMT; domain=.phantom.app; HttpOnly; Secure; SameSite=None, _cfuvid=HbQ_5iW.NJKV479.ohp7kJKEjIZoRsXi0tEe6zQolFc-1716841833403-0.0.1.1-604800000; path=/; domain=.phantom.app; HttpOnly; Secure; SameSite=None'
    },
    'server' => { name: 'Server', value: 'cloudflare' },
    'cf-ray' => { name: 'CF-RAY', value: '88a8c371dcccb16a-WAW' },
    'alt-svc' => { name: 'alt-svc', value: 'h3=":443"; ma=86400' }
  },
  [Symbol(headers map sorted)]: null
}
>

CHROME DEVTOOLS CORS ERROR FROM EXTENSION

@makindotcc
Copy link
Author

btw. where is the SOURCE CODE of browser extension? i can't find one. Isn't web 3.0 based on PUBLIC, decentralized blockchains?

@Cognacy
Copy link

Cognacy commented Jun 9, 2024

Hey there @makindotcc, do you have solution to this issue?

@makindotcc
Copy link
Author

Hey there @makindotcc, do you have solution to this issue?

creating new profile in chrome temporarly (and sometimes) works. Tried new profile in firefox, but nothing changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@makindotcc @Cognacy and others