--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/cbb2954b-fb00-4146-9475-6eaa5672ad3c%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
does your manifest allow this domain ?
On Thu, Aug 6, 2015 at 11:12 PM, saurabh datta <dattasa...@gmail.com> wrote:
Hello everyone..I'm new in web programming .. I'm doing an art project and making a chrome app..Few first steps in experimentation are:>Log your own IP address and your country..>Log the visiting website's IP and country ..> Do something after that..I found a chrome extension which throws IP of visiting sites. ([1] https://github.com/tinybigideas/WebsiteIP)
I console logged it for simplicity and removed unnecessary stuff and then loaded it.. It works..Then I found another jquery based api to know the country code of a specific ip address or even my own ip address ( https://ipinfo.io/developers ) .. It makes a http/https call.When I put that jquery snippet into the ip.js file[1] combined with the other code, it did nothing.. I even got an ssl request calls on that API for security but it seems external calls to other api is not possible..I'm a newbie and doesn't have much insight here.. please help me to solve this problem ..
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/cbb2954b-fb00-4146-9475-6eaa5672ad3c%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
To solve the first problem, you need to relax the default CSP settings as described on SO here. More on CSP in Chrome can be found here.
To solve the second problem, you need to fix your (erroneous) usage of the tabs API to send messages: Specify the receiving tab's ID as the first parameter and the entire object of data you want to push as the second parameter. The official tabs API documentation and the section describing simple message passing are your friends. (By the way, you already have a "more correct" approach in your code commented out.)
In general, I would advise to try to achieve a better understanding of Chrome extension development to solve these and similar problems, referring to the official documentation again.
HTH,
Timo
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/74514059-7353-4e1b-88c7-eb365ef8d137%40chromium.org.