Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

Commit

Permalink
Merge pull request #903 from sendgrid/apisg
Browse files Browse the repository at this point in the history
Removed the CORS work around
  • Loading branch information
Matt Bernier committed Jan 22, 2015
2 parents 77e298f + 3db4347 commit 4c5fdce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion source/API_Reference/Web_API/timezone.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ get

Get current timezone assigned to the user.

{% apiexample get GET https://sendgrid.com/api/timezone/get api_user=your_sendgrid_username&api_key=your_sendgrid_password %}
{% apiexample get GET https://api.sendgrid.com/api/timezone/get api_user=your_sendgrid_username&api_key=your_sendgrid_password %}
{% response json %}
{
"name": "Eastern Time, US & Canada",
Expand Down
9 changes: 0 additions & 9 deletions source/_assets/javascripts/livedocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,9 @@ $(function() {
if (!valid) return;

url = $(this).parent().find('.url').val();
// Temporary fix to allow for CORS
// Revert, once OPS allows for CORS on sendgrid domains
url = url.replace("api.sendgrid.com", "sendgrid.com");
method = $(this).parent().find('.method').val().toUpperCase().trim();
creds = "api_user=" + username + "&api_key=" + password;
format = "." + Livedocs.getResponseFormat();
// Temporary fix to allow for CORS
// Revert, once OPS allows for CORS on sendgrid domains
url = url.replace("api.sendgrid.com", "sendgrid.com");
data = buildQueryString($(this));

if (method == "GET") {
Expand Down Expand Up @@ -235,9 +229,6 @@ $(function() {
username = $.cookie('username');

url = livedoc.find('.url').val();
// Temporary fix to allow for CORS
// Revert, once OPS allows for CORS on sendgrid domains
url = url.replace("api.sendgrid.com", "sendgrid.com");
method = livedoc.find('.method').val().toUpperCase().trim();
creds = "api_user=" + username + "&api_key=XXXXXXXX";
format = "." + Livedocs.getResponseFormat();
Expand Down

0 comments on commit 4c5fdce

Please # to comment.