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

Including oauth_inject.js results in break all pages #45

Open
RichardLitt opened this issue May 6, 2015 · 1 comment
Open

Including oauth_inject.js results in break all pages #45

RichardLitt opened this issue May 6, 2015 · 1 comment

Comments

@RichardLitt
Copy link

If I include oauth2/oauth_inject.js in my manifest as a content script, and have it run at start, any time I try to go to any page using Chrome it redirects to about:blank. I'm not sure what it is I am expected to do.

Here's a link to my extension: https://github.com/BeagleLab/beagle/tree/feature/143-smus/build

@marco64bit
Copy link

I followed the tutorial but i have the same problem, the oauth_inject.js redirect to about:blank page, at this line:
var redirect = chrome.extension.getURL('oauth2/oauth2.html');
window.location = redirect + params;

my folder path:

my-extension/oauth2/oauth2.html

## UPDATED:
The solution for me:
add in manifest.json the oauth2.html file
"web_accessible_resources" : [
"oauth2/oauth2.html"
],

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

2 participants