我试图在不同的机器上测试我的chrome扩展,并且我看到扩展ID每次都会更改,因为我将它作为解压扩展加载.
但是,我真的需要保持相同的扩展ID.我的扩展程序通过OAuth 2.0与外部非Google提供商进行.当我向外部提供商注册我的扩展时,我提供了重定向URI,
chrome-extension://<extension-id>/callback.html如果我再次加载解压缩的扩展名,则ID会更改,我的应用程序将不再适用,因为重定向URI会更改.不断更改重定向URI几乎是不可行的.我如何保持相同的ID?
我是puppeteer和docker的新手。我在docker容器中以headful模式设置人偶时遇到问题。
Puppeteer version: 1.6.2 Platform / OS version: Docker node:8-slim Node.js version: node 8
Run Code Online (Sandbox Code Playgroud)
DockerFile-
FROM node:8-slim
RUN apt-get update && apt-get install --no-install-recommends -y ca-certificates curl fontconfig fonts-liberation gconf-service git libappindicator1 libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 locales lsb-release unzip wget xdg-utils
RUN apt-get update && apt-get install -y wget --no-install-recommends && wget -q …Run Code Online (Sandbox Code Playgroud)