Jump to content
Francesco

Unauthorized access to internal API

Recommended Posts

Using search box in a website page (eg. http://mtbfriuli.com/eng/guide.html) appears this error message: 

Unauthorized access to internal API. Please refer to https://support.google.com/customsearch/answer/4542055

Could it be related to API 2.0? How can it be solved? 

Thanks

Francesco 

In page header: 

        <!-- Google Search -->
        <script>
          (function() {
            var cx = '00000000000000000:aaaaaaaaaaaaaaaaa';
            var gcse = document.createElement('script');
            gcse.type = 'text/javascript';
            gcse.async = true;
            gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
            var s = document.getElementsByTagName('script')[0];
            s.parentNode.insertBefore(gcse, s);
          })();
        </script>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×