{"action":"created","comment":{"url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/comments/237072358","pull_request_review_id":179281153,"id":237072358,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzA3MjM1OA==","diff_hunk":"@@ -164,6 +164,17 @@ For sites that need to provide services with Cross-Origin Resource Sharing (COR\n \n Sites that consume services using CORS, such as Amazon S3 CORS, do work on Pantheon.\n \n+For WordPress users, they can use the [WP-CORS plugin](https://wordpress.org/plugins/wp-cors/){.external} or add this in their theme's `function.php`:\n+\n+```\n+add_filter('allowed_http_origins', 'pantheon_allowed_origins');\n+\n+function pantheon_allowed_origins($urls) {\n+    $urls[] = 'https://www.example.com';","path":"source/_docs/platform-considerations.md","position":15,"original_position":10,"commit_id":"0e2650aca605d881a7a65077a32cff1f656d4a98","original_commit_id":"c56b3c70e57ee223896825fc90959f6edad3d510","user":{"login":"carl-alberto","id":5098765,"node_id":"MDQ6VXNlcjUwOTg3NjU=","avatar_url":"https://avatars0.githubusercontent.com/u/5098765?v=4","gravatar_id":"","url":"https://api.github.com/users/carl-alberto","html_url":"https://github.com/carl-alberto","followers_url":"https://api.github.com/users/carl-alberto/followers","following_url":"https://api.github.com/users/carl-alberto/following{/other_user}","gists_url":"https://api.github.com/users/carl-alberto/gists{/gist_id}","starred_url":"https://api.github.com/users/carl-alberto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carl-alberto/subscriptions","organizations_url":"https://api.github.com/users/carl-alberto/orgs","repos_url":"https://api.github.com/users/carl-alberto/repos","events_url":"https://api.github.com/users/carl-alberto/events{/privacy}","received_events_url":"https://api.github.com/users/carl-alberto/received_events","type":"User","site_admin":false},"body":"@alexfornuto These will be the urls allowed for cross-domain requests, please note that protocol(http/https) and www/non www urls are relevant here. Multiple values is also possible, eg.\r\n\r\n`$urls[] = array( 'https://www.example.com', 'http://www.example.com', 'https://example.com', 'http://example.com'  ) ;`","created_at":"2018-11-28T12:57:40Z","updated_at":"2018-11-28T12:57:40Z","html_url":"https://github.com/pantheon-systems/documentation/pull/4271#discussion_r237072358","pull_request_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/4271","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/comments/237072358"},"html":{"href":"https://github.com/pantheon-systems/documentation/pull/4271#discussion_r237072358"},"pull_request":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/4271"}},"in_reply_to_id":236757185},"pull_request":{"url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/4271","id":233017824,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMDE3ODI0","html_url":"https://github.com/pantheon-systems/documentation/pull/4271","diff_url":"https://github.com/pantheon-systems/documentation/pull/4271.diff","patch_url":"https://github.com/pantheon-systems/documentation/pull/4271.patch","issue_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/4271","number":4271,"state":"open","locked":false,"title":"add CORS resolution in WP","user":{"login":"carl-alberto","id":5098765,"node_id":"MDQ6VXNlcjUwOTg3NjU=","avatar_url":"https://avatars0.githubusercontent.com/u/5098765?v=4","gravatar_id":"","url":"https://api.github.com/users/carl-alberto","html_url":"https://github.com/carl-alberto","followers_url":"https://api.github.com/users/carl-alberto/followers","following_url":"https://api.github.com/users/carl-alberto/following{/other_user}","gists_url":"https://api.github.com/users/carl-alberto/gists{/gist_id}","starred_url":"https://api.github.com/users/carl-alberto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carl-alberto/subscriptions","organizations_url":"https://api.github.com/users/carl-alberto/orgs","repos_url":"https://api.github.com/users/carl-alberto/repos","events_url":"https://api.github.com/users/carl-alberto/events{/privacy}","received_events_url":"https://api.github.com/users/carl-alberto/received_events","type":"User","site_admin":false},"body":"Closes #4270 \r\n\r\n## Effect\r\nPR includes the following changes:\r\n- Add possible solutions in WP\r\n\r\n## Remaining Work\r\n- [ ] Add possible solutions in Drupal\r\n\r\n## Post Launch\r\nTo be completed by the docs team upon merge: \r\n- [ ] Redirect `/docs/old-path/` => `/docs/new-path/` (if applicable)\r\n- [ ] Include/exclude pages ^ respectively within docs search service provider (if applicable)\r\n- [ ] Update Status Report\r\n- [ ] Archive from **Done** in Waffle\r\n","created_at":"2018-11-22T15:36:10Z","updated_at":"2018-11-28T12:57:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"35265502dde5491a15e41d11e848665b65695a85","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/4271/commits","review_comments_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/4271/comments","review_comment_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/4271/comments","statuses_url":"https://api.github.com/repos/pantheon-systems/documentation/statuses/0e2650aca605d881a7a65077a32cff1f656d4a98","head":{"label":"pantheon-systems:4270corsresolutionWP","ref":"4270corsresolutionWP","sha":"0e2650aca605d881a7a65077a32cff1f656d4a98","user":{"login":"pantheon-systems","id":513357,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMzM1Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/513357?v=4","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"repo":{"id":26826032,"node_id":"MDEwOlJlcG9zaXRvcnkyNjgyNjAzMg==","name":"documentation","full_name":"pantheon-systems/documentation","private":false,"owner":{"login":"pantheon-systems","id":513357,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMzM1Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/513357?v=4","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/pantheon-systems/documentation","description":"Pantheon Docs","fork":false,"url":"https://api.github.com/repos/pantheon-systems/documentation","forks_url":"https://api.github.com/repos/pantheon-systems/documentation/forks","keys_url":"https://api.github.com/repos/pantheon-systems/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pantheon-systems/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pantheon-systems/documentation/teams","hooks_url":"https://api.github.com/repos/pantheon-systems/documentation/hooks","issue_events_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/pantheon-systems/documentation/events","assignees_url":"https://api.github.com/repos/pantheon-systems/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/pantheon-systems/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/pantheon-systems/documentation/tags","blobs_url":"https://api.github.com/repos/pantheon-systems/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pantheon-systems/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pantheon-systems/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/pantheon-systems/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pantheon-systems/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/pantheon-systems/documentation/languages","stargazers_url":"https://api.github.com/repos/pantheon-systems/documentation/stargazers","contributors_url":"https://api.github.com/repos/pantheon-systems/documentation/contributors","subscribers_url":"https://api.github.com/repos/pantheon-systems/documentation/subscribers","subscription_url":"https://api.github.com/repos/pantheon-systems/documentation/subscription","commits_url":"https://api.github.com/repos/pantheon-systems/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/pantheon-systems/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/pantheon-systems/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/pantheon-systems/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/pantheon-systems/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pantheon-systems/documentation/merges","archive_url":"https://api.github.com/repos/pantheon-systems/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pantheon-systems/documentation/downloads","issues_url":"https://api.github.com/repos/pantheon-systems/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/pantheon-systems/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/pantheon-systems/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pantheon-systems/documentation/labels{/name}","releases_url":"https://api.github.com/repos/pantheon-systems/documentation/releases{/id}","deployments_url":"https://api.github.com/repos/pantheon-systems/documentation/deployments","created_at":"2014-11-18T19:26:21Z","updated_at":"2018-11-27T22:53:42Z","pushed_at":"2018-11-27T21:57:41Z","git_url":"git://github.com/pantheon-systems/documentation.git","ssh_url":"git@github.com:pantheon-systems/documentation.git","clone_url":"https://github.com/pantheon-systems/documentation.git","svn_url":"https://github.com/pantheon-systems/documentation","homepage":"https://pantheon.io/docs","size":235225,"stargazers_count":91,"watchers_count":91,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":241,"mirror_url":null,"archived":false,"open_issues_count":99,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":241,"open_issues":99,"watchers":91,"default_branch":"master"}},"base":{"label":"pantheon-systems:master","ref":"master","sha":"4178aa94afe4eb278c36c772411bc1f7aa0cea46","user":{"login":"pantheon-systems","id":513357,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMzM1Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/513357?v=4","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"repo":{"id":26826032,"node_id":"MDEwOlJlcG9zaXRvcnkyNjgyNjAzMg==","name":"documentation","full_name":"pantheon-systems/documentation","private":false,"owner":{"login":"pantheon-systems","id":513357,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMzM1Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/513357?v=4","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/pantheon-systems/documentation","description":"Pantheon Docs","fork":false,"url":"https://api.github.com/repos/pantheon-systems/documentation","forks_url":"https://api.github.com/repos/pantheon-systems/documentation/forks","keys_url":"https://api.github.com/repos/pantheon-systems/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pantheon-systems/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pantheon-systems/documentation/teams","hooks_url":"https://api.github.com/repos/pantheon-systems/documentation/hooks","issue_events_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/pantheon-systems/documentation/events","assignees_url":"https://api.github.com/repos/pantheon-systems/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/pantheon-systems/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/pantheon-systems/documentation/tags","blobs_url":"https://api.github.com/repos/pantheon-systems/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pantheon-systems/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pantheon-systems/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/pantheon-systems/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pantheon-systems/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/pantheon-systems/documentation/languages","stargazers_url":"https://api.github.com/repos/pantheon-systems/documentation/stargazers","contributors_url":"https://api.github.com/repos/pantheon-systems/documentation/contributors","subscribers_url":"https://api.github.com/repos/pantheon-systems/documentation/subscribers","subscription_url":"https://api.github.com/repos/pantheon-systems/documentation/subscription","commits_url":"https://api.github.com/repos/pantheon-systems/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/pantheon-systems/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/pantheon-systems/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/pantheon-systems/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/pantheon-systems/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/pantheon-systems/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pantheon-systems/documentation/merges","archive_url":"https://api.github.com/repos/pantheon-systems/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pantheon-systems/documentation/downloads","issues_url":"https://api.github.com/repos/pantheon-systems/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/pantheon-systems/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/pantheon-systems/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/pantheon-systems/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pantheon-systems/documentation/labels{/name}","releases_url":"https://api.github.com/repos/pantheon-systems/documentation/releases{/id}","deployments_url":"https://api.github.com/repos/pantheon-systems/documentation/deployments","created_at":"2014-11-18T19:26:21Z","updated_at":"2018-11-27T22:53:42Z","pushed_at":"2018-11-27T21:57:41Z","git_url":"git://github.com/pantheon-systems/documentation.git","ssh_url":"git@github.com:pantheon-systems/documentation.git","clone_url":"https://github.com/pantheon-systems/documentation.git","svn_url":"https://github.com/pantheon-systems/documentation","homepage":"https://pantheon.io/docs","size":235225,"stargazers_count":91,"watchers_count":91,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":241,"mirror_url":null,"archived":false,"open_issues_count":99,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":241,"open_issues":99,"watchers":91,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/4271"},"html":{"href":"https://github.com/pantheon-systems/documentation/pull/4271"},"issue":{"href":"https://api.github.com/repos/pantheon-systems/documentation/issues/4271"},"comments":{"href":"https://api.github.com/repos/pantheon-systems/documentation/issues/4271/comments"},"review_comments":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/4271/comments"},"review_comment":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pantheon-systems/documentation/pulls/4271/commits"},"statuses":{"href":"https://api.github.com/repos/pantheon-systems/documentation/statuses/0e2650aca605d881a7a65077a32cff1f656d4a98"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"carl-alberto"}}