Advertisement
plirof2

chrome TIPS 2: CORS,flash electron,extensions, -host-rules

Jan 4th, 2023 (edited)
1,141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ----------------------
  2. DISABLE CORS
  3. PATH_TO_CHROME]\chrome.exe" --disable-web-security --disable-gpu --user-data-dir=~/chromeTemp_______________https://alfilatov.com/posts/run-chrome-without-cors/_______
  4.  
  5. https://stackoverflow.com/questions/35432749/disable-web-security-in-chrome-48
  6. , --disable-site-isolation-trials
  7.  
  8.  
  9. https://aleksgrunwald.wordpress.com/2019/12/08/disable-cors-policy-on-android-chrome/
  10.  
  11.  
  12. -----------------------------------------
  13. Chrome load extensions programmatically ****
  14. https://stackoverflow.com/questions/20782557/load-unpacked-chrome-extension-programmatically
  15. ---------------------------
  16. https://datacadamia.com/web/browser/chrome
  17.  
  18.  
  19. -----------------------------------------
  20. ELECTROn FLASH up to v4.2.6  or v4.2.11 (https://github.com/electron/electron/releases?q=v4.2.6&expanded=true)
  21.  
  22. https://github.com/electron/electron/blob/b7bc16b39a727370c62f37666d9a06d38a673f7e/docs/tutorial/using-pepper-flash-plugin.md
  23.  
  24. https://docs.w3cub.com/electron/api/command-line-switches
  25. https://www.electronjs.org/docs/latest/api/command-line-switches
  26.  
  27. Electron command line switches *** good for Chrome too https://segmentfault.com/a/1190000040119171/en
  28. https://stackoverflow.com/questions/58017490/how-can-i-make-flash-work-in-my-electron-application
  29.  
  30. https://stackoverflow.com/questions/62766547/can-i-bundle-pepper-flash-in-an-electron-js-app-to-run-flash-in-2021
  31.  
  32. https://github.com/alvin-777/flash-player-loader-for-electron
  33.  
  34. ___________________________________________
  35. HOST setting (try on chrome : https://segmentfault.com/a/1190000040119171/en)
  36.  
  37. https://stackoverflow.com/questions/14605636/host-rules-google-chrome-adding-configuration
  38. "/path/to/chrome.exe" --host-rules="MAP * www.domain.de, EXCLUDE *.youtube.*, EXCLUDE *.last.fm"
  39.  
  40.  
  41.  
  42. --host-resolver-rules="MAP prod.example.com test.example.com,EXCLUDE localhost,EXCLUDE 127.0.0.1"
  43. --host-resolver-rules="MAP * www.domain.de, EXCLUDE *.youtube.*"
  44. --host-resolver-rules="MAP * www.domain.de, EXCLUDE *.youtube.*","MAP * www.domain.de, EXCLUDE *.last.fm"
  45. --host-resolver-rules="MAP *.co.za 172.11.12.13, Exclude google.co.za"
  46. --host-resolver-rules="MAP * www.d
  47.  
  48.  
  49.  
  50. --host-rules=rules
  51. A comma-separated list of rule to control how hostnames are mapped.
  52.  
  53. E.g:
  54.  
  55. MAP * 127.0.0.1 forces all hostnames to map to 127.0.0.1 .
  56. MAP *.9xkd.com proxy forces all 9xkd.com subdomains to use "proxy".
  57. MAP test.com [::1]:77 forces "test.com" to use an IPv6 loopback address, and also forces port 77 .
  58. MAP * jswui, EXCLUDE www.9xkd.com remapped to "jswui", except for "www.9xkd.com".
  59. These mappings are suitable for terminal network requests ( TCP connection and host resolution are connected directly, and CONNECT is connected as a proxy, and terminal host connected with SOCKS proxy).
  60.  
  61. --host-resolver-rules=rules
  62. This switch is similar to --host-rules , but rules only suitable for host resolution.
  63.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement