title: Linkedin SDK You must specify a valid JavaScript API Domain as part of this key's configuration
body: <p>I created an application in linkedin developers and set OAuth 2.0 redirect urls as <code>http://localhost:8080/</code> and <code>http://localhost:8080/myProject/</code>. Then I wrote <code>&lt;script&gt;</code> in <code>&lt;head&gt;</code> section:</p>
  
  <pre><code>&lt;script type="text/javascript" src="//platform.linkedin.com/in.js"&gt;
      api_key: 86g3tbk6gy0y56
      onLoad: liLogin()
      authorize: yes
  &lt;/script&gt;
  </code></pre>
  
  <p>Also I wrote one more <code>&lt;script&gt;</code> at the bottom of the page:</p>
  
  <pre><code>&lt;script&gt;
      var liLogin = function() { 
          IN.UI.Authorize().params({"scope":["r_basicprofile", "r_emailaddress"]}).place();
          IN.Event.on(IN, 'auth', getProfileData);
      }
  
      var getProfileData = function() {
          IN.API.Profile("me").fields("id,firstName,lastName,email-address,picture-urls::(original),public-profile-url,location:(name)").result(function (me) {
              var profile = me.values[0];
              var id = profile.id;
              var firstName = profile.firstName;
              var lastName = profile.lastName;
              var emailAddress = profile.emailAddress;
              var pictureUrl = profile.pictureUrls.values[0];
              var profileUrl = profile.publicProfileUrl;
              var country = profile.location.name;
              alert(firstName + " " + lastName);
          });
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>Then I create an <code>&lt;a&gt;</code> tag for calling the <code>liLogin</code> function.</p>
  
  <p><code>&lt;a onClick="liLogin()"&gt;Linkedin&lt;/a&gt;</code></p>
  
  <blockquote>
    <p>Uncaught Error: You must specify a valid JavaScript API Domain as part of > this key's configuration.
       at userspace?v=0.0.2000-RC8.60429-
    1429&amp;apiKey=86g3vbk6gy0y56&amp;onLoad=liLogin()&amp;authorize=yes&amp;secure=1&amp;:22
       at userspace?v=0.0.2000-RC8.60429-
    1429&amp;apiKey=86g3vbk6gy0y56&amp;onLoad=liLogin()&amp;authorize=yes&amp;secure=1&amp;:31</p>
  </blockquote>
  
  <p>Above error occurs when I run the application.</p>
  
  <p>Also, if I write configuration with <code>""</code>, then linkedin login page appears, but the content is <code>uh oh</code>.</p>
  
  <pre><code>&lt;script type="text/javascript" src="//platform.linkedin.com/in.js"&gt;
      'api_key': '86g3tbk6gy0y56',
      'onLoad': 'liLogin()',
      'authorize': 'yes'
  &lt;/script&gt;
  </code></pre>
  
  <p>How can I make linkedin configuration?</p>