-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
src/ApiClient.js
Outdated
@@ -5,6 +5,27 @@ function removeForwardSlash(endpoint) { | |||
return endpoint; | |||
} | |||
|
|||
function createRequestArgs(method: string, headers: Headers,corsMode:boolean = true ){ |
There was a problem hiding this comment.
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', | ||
} |
There was a problem hiding this comment.
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', | ||
} |
There was a problem hiding this comment.
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', | ||
} | ||
} | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary semicolon.
Pull Request Test Coverage Report for Build 53
💛 - Coveralls |
@@ -5,6 +5,27 @@ function removeForwardSlash(endpoint) { | |||
return endpoint; | |||
} | |||
|
|||
function createRequestArgs(method: string, headers: Headers, corsMode:boolean = true ){ |
There was a problem hiding this comment.
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.
Code Climate has analyzed commit fd0c3c7 and detected 2 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
#17