{"action":"created","issue":{"url":"https://api.github.com/repos/Shopify/shopify_app/issues/232","repository_url":"https://api.github.com/repos/Shopify/shopify_app","labels_url":"https://api.github.com/repos/Shopify/shopify_app/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/Shopify/shopify_app/issues/232/comments","events_url":"https://api.github.com/repos/Shopify/shopify_app/issues/232/events","html_url":"https://github.com/Shopify/shopify_app/issues/232","id":140629633,"number":232,"title":"App during installation does not redirect me back to shopify","user":{"login":"ssuperczynski","id":6843074,"avatar_url":"https://avatars.githubusercontent.com/u/6843074?v=3","gravatar_id":"","url":"https://api.github.com/users/ssuperczynski","html_url":"https://github.com/ssuperczynski","followers_url":"https://api.github.com/users/ssuperczynski/followers","following_url":"https://api.github.com/users/ssuperczynski/following{/other_user}","gists_url":"https://api.github.com/users/ssuperczynski/gists{/gist_id}","starred_url":"https://api.github.com/users/ssuperczynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssuperczynski/subscriptions","organizations_url":"https://api.github.com/users/ssuperczynski/orgs","repos_url":"https://api.github.com/users/ssuperczynski/repos","events_url":"https://api.github.com/users/ssuperczynski/events{/privacy}","received_events_url":"https://api.github.com/users/ssuperczynski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-03-14T10:11:25Z","updated_at":"2016-03-24T19:06:07Z","closed_at":"2016-03-15T12:44:50Z","body":"I am redirect strict to my app without Shopify Iframe (without Shopify menu at left hand side), and from console.log I am getting&nbsp;\r\n<blockquote>\r\n<p>Failed to execute &#39;postMessage&#39; on &#39;DOMWindow&#39;: The target origin provided (&#39;https://shoptest.myshopify.com&#39;) does not match the recipient window&#39;s origin (&#39;https://846e6adb.ngrok.io&#39;).</p>\r\n</blockquote>\r\n\r\n<p>But when I click once again&nbsp;Apps -&gt; Installed -&gt; myapp i am redirecting correctly to Shopify with an iframe.</p>\r\n<p><img alt=\"\" src=\"http://i.imgur.com/4XjTKXA.png\" style=\"height:319px; width:853px\" /></p>\r\n\r\n\r\n<p><img alt=\"\" src=\"http://i.imgur.com/taT1YrI.png\" style=\"height:580px; width:862px\" /></p>\r\n\r\n<p>As you see I am using ngrok https tunnel.</p>\r\n\r\nHow can I fix it?\r\n\r\nThis is my config on Shopify page:\r\n\r\n<p><img alt=\"\" src=\"http://i.imgur.com/SgYzIkn.png\" style=\"height:516px; width:676px\" /></p>\r\n\r\nand this my config from `config/initializers/shopify_app.rb`\r\n\r\n```ruby\r\nShopifyApp.configure do |config|\r\n  config.api_key = \"KEY\"\r\n  config.secret = \"SECRET\"\r\n  config.redirect_uri = \"https://846e6adb.ngrok.io/auth/shopify/callback\"\r\n  config.scope = \"read_orders, read_products, read_themes, write_themes\"\r\n  config.embedded_app = true\r\nend\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Shopify/shopify_app/issues/comments/200973946","html_url":"https://github.com/Shopify/shopify_app/issues/232#issuecomment-200973946","issue_url":"https://api.github.com/repos/Shopify/shopify_app/issues/232","id":200973946,"user":{"login":"prasanthrubyist","id":12747473,"avatar_url":"https://avatars.githubusercontent.com/u/12747473?v=3","gravatar_id":"","url":"https://api.github.com/users/prasanthrubyist","html_url":"https://github.com/prasanthrubyist","followers_url":"https://api.github.com/users/prasanthrubyist/followers","following_url":"https://api.github.com/users/prasanthrubyist/following{/other_user}","gists_url":"https://api.github.com/users/prasanthrubyist/gists{/gist_id}","starred_url":"https://api.github.com/users/prasanthrubyist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasanthrubyist/subscriptions","organizations_url":"https://api.github.com/users/prasanthrubyist/orgs","repos_url":"https://api.github.com/users/prasanthrubyist/repos","events_url":"https://api.github.com/users/prasanthrubyist/events{/privacy}","received_events_url":"https://api.github.com/users/prasanthrubyist/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T19:06:07Z","updated_at":"2016-03-24T19:06:07Z","body":"I need one more help I'm new to shopify.....How can I get current shop domain url in my rails controller ? Can you help me...\r\n "}}