{"action":"created","issue":{"url":"https://api.github.com/repos/formspree/formspree/issues/86","repository_url":"https://api.github.com/repos/formspree/formspree","labels_url":"https://api.github.com/repos/formspree/formspree/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/formspree/formspree/issues/86/comments","events_url":"https://api.github.com/repos/formspree/formspree/issues/86/events","html_url":"https://github.com/formspree/formspree/pull/86","id":141108533,"number":86,"title":"Use https in documentation","user":{"login":"mcornella","id":1441704,"avatar_url":"https://avatars.githubusercontent.com/u/1441704?v=3","gravatar_id":"","url":"https://api.github.com/users/mcornella","html_url":"https://github.com/mcornella","followers_url":"https://api.github.com/users/mcornella/followers","following_url":"https://api.github.com/users/mcornella/following{/other_user}","gists_url":"https://api.github.com/users/mcornella/gists{/gist_id}","starred_url":"https://api.github.com/users/mcornella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcornella/subscriptions","organizations_url":"https://api.github.com/users/mcornella/orgs","repos_url":"https://api.github.com/users/mcornella/repos","events_url":"https://api.github.com/users/mcornella/events{/privacy}","received_events_url":"https://api.github.com/users/mcornella/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-15T21:47:55Z","updated_at":"2016-03-16T02:23:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/formspree/formspree/pulls/86","html_url":"https://github.com/formspree/formspree/pull/86","diff_url":"https://github.com/formspree/formspree/pull/86.diff","patch_url":"https://github.com/formspree/formspree/pull/86.patch"},"body":"As [Paul Irish put it](https://twitter.com/paul_irish/status/588502455530311680):\r\n\r\n> The protocol relative URL is now an anti-pattern. If the asset is available on HTTPS, always request it with that. https://www.paulirish.com/2010/the-protocol-relative-url/\r\n\r\nThis ensures that forms are always submitted using HTTPS, even on websites delivered by HTTP.\r\n\r\n-----\r\n**Fixes partially #85.**\r\n\r\n**Changes proposed in this pull request:**\r\n\r\n* Drop the use of the protocol-relative URL (`//host/...`) in favor of always using HTTPS (`https://host/...`).\r\n* Change the home page URL to HTTPS.\r\n* Change the `API_ROOT` config variable: now it must begin with `https://`.\r\n\r\n**Screenshots and GIFs**\r\n\r\nSee website screenshots over at https://github.com/formspree/formspree/issues/85#issuecomment-197026612.\r\n\r\n![icanhazhttps](http://cdn.meme.am/instances/61459771.jpg)\r\n\r\n**Deploy notes**\r\n\r\nThe `API_ROOT` environment variable should be changed to start with `https://`. As I said before, I can make the commit so that it doesn't require changing it, i.e. by hardcoding `https://` on forms that use `config.API_ROOT`.\r\n"},"comment":{"url":"https://api.github.com/repos/formspree/formspree/issues/comments/197116866","html_url":"https://github.com/formspree/formspree/pull/86#issuecomment-197116866","issue_url":"https://api.github.com/repos/formspree/formspree/issues/86","id":197116866,"user":{"login":"rohitdatta","id":6260066,"avatar_url":"https://avatars.githubusercontent.com/u/6260066?v=3","gravatar_id":"","url":"https://api.github.com/users/rohitdatta","html_url":"https://github.com/rohitdatta","followers_url":"https://api.github.com/users/rohitdatta/followers","following_url":"https://api.github.com/users/rohitdatta/following{/other_user}","gists_url":"https://api.github.com/users/rohitdatta/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitdatta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitdatta/subscriptions","organizations_url":"https://api.github.com/users/rohitdatta/orgs","repos_url":"https://api.github.com/users/rohitdatta/repos","events_url":"https://api.github.com/users/rohitdatta/events{/privacy}","received_events_url":"https://api.github.com/users/rohitdatta/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T02:23:23Z","updated_at":"2016-03-16T02:23:23Z","body":"Yeah from what I can tell, the only change necessary for this would be to change the API_ROOT to `https://formspree.io`, but I still can't tell if that will break anything. I don't think a `PROTOCOL` variable would be necessary. If changing the API_ROOT breaks anything I don't know what the solution is, but I wouldn't add a layer of complexity with a protocol variable."}}