Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable cross-origin requests to be turned on #18

Merged
merged 5 commits into from
Nov 3, 2018
Merged

Enable cross-origin requests to be turned on #18

merged 5 commits into from
Nov 3, 2018

Conversation

Shelob9
Copy link
Collaborator

@Shelob9 Shelob9 commented Nov 3, 2018

#17

src/ApiClient.js Outdated
@@ -5,6 +5,27 @@ function removeForwardSlash(endpoint) {
return endpoint;
}

function createRequestArgs(method: string, headers: Headers,corsMode:boolean = true ){
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There must be a space after "corsMode" parameter type annotation colon.

src/ApiClient.js Outdated
return {
...args,
mode:'cors',
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon.

src/ApiClient.js Outdated
...args,
mode:'same-origin',
credentials: 'same-origin',
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon.

credentials: 'same-origin',
}
}
};
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary semicolon.

@coveralls
Copy link

coveralls commented Nov 3, 2018

Pull Request Test Coverage Report for Build 53

  • 5 of 6 (83.33%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.6%) to 87.574%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/ApiClient.js 5 6 83.33%
Totals Coverage Status
Change from base Build 49: -0.6%
Covered Lines: 100
Relevant Lines: 108

💛 - Coveralls

@@ -5,6 +5,27 @@ function removeForwardSlash(endpoint) {
return endpoint;
}

function createRequestArgs(method: string, headers: Headers, corsMode:boolean = true ){
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There must be a space after "corsMode" parameter type annotation colon.

@codeclimate
Copy link

codeclimate bot commented Nov 3, 2018

Code Climate has analyzed commit fd0c3c7 and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Style 1
Bug Risk 1

View more on Code Climate.

@Shelob9 Shelob9 merged commit fca9be3 into master Nov 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants