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

Fix CORS and mixed content issue #199

Merged
merged 2 commits into from
Oct 20, 2019
Merged

Fix CORS and mixed content issue #199

merged 2 commits into from
Oct 20, 2019

Conversation

hosseinnedaee
Copy link
Contributor

@hosseinnedaee hosseinnedaee commented Oct 19, 2019

In this PR I used Nuxtjs serverMiddleware to create a proxy server and pass the requests through the proxy and get over CORS and mixed-content issue's

resolving #175 and #2

@ghost
Copy link

ghost commented Oct 19, 2019

DeepCode Report (#395029)

DeepCode analyzed this pull request.
There are no new issues.

@TravisBuddy
Copy link

Hey @hosseinnedaee,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: 48432ae0-f2b3-11e9-8575-bb3eea981d29

@liyasthomas liyasthomas added core Changes regarding core concepts feature New feature or request need testing Needs to be tested before merging onto production labels Oct 19, 2019
icon: 'error'
});
if(!this.$store.state.postwoman.settings.PROXY_ENABLED) {
this.$toast.info('Turn on the proxy', {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is looking good to me, my only recommendation is that this be renamed to 'Try enabling the proxy' or words to that effect, but it's not that significant.

Copy link
Member

Choose a reason for hiding this comment

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

How about "Switch to Proxy mode"?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes - but perhaps with the question mark. The idea being to imply to the user that it's something that might help with the error.

@NBTX
Copy link
Contributor

NBTX commented Oct 19, 2019

Oh- just one other issue, we need to add Access-Control-Allow-Headers: * to the proxy response

@NBTX
Copy link
Contributor

NBTX commented Oct 20, 2019

See #200 which includes these commits with some finishing touches and bug fixes.

@liyasthomas liyasthomas merged commit 1070260 into hoppscotch:master Oct 20, 2019
@hosseinnedaee hosseinnedaee deleted the Proxy_Server branch November 7, 2019 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Changes regarding core concepts feature New feature or request need testing Needs to be tested before merging onto production
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants