开发者

How do I call a page within my Chrome Extension without using a dash?

开发者 https://www.devze.com 2023-03-28 15:18 出处:网络
Chrome appears to allow users to call a page from the extension using a format similar to: \\ chrome-extension://dckobaoiekjnnheocplcnkhnhhnpjcnl/OAu开发者_StackOverflow社区th/_callback.html

Chrome appears to allow users to call a page from the extension using a format similar to: \

chrome-extension://dckobaoiekjnnheocplcnkhnhhnpjcnl/OAu开发者_StackOverflow社区th/_callback.html

The problem is I am using Salesforce and for whatever reason they consider having a dash in the protocol invalid. The problem I am running into is I have to place a callback URL for the process I am working on. Is there another way to use https and something akin to Localhost or perhaps another protocol that does not contain a - in order to be able to call a page within my Chrome Extension?


If you are making a call from a background page then relative path OAuth/_callback.html should work.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号