-
Notifications
You must be signed in to change notification settings - Fork 1.5k
The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. #624
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
Comments
This is a bug in the last I am opening a bug for this, in the meantime you can stick to the previous version: |
I commented on the linked issue there, but if anyone here can provide a small example app which reproduces this error, I'd be happy to take a look at it. |
|
I am using webpack with Vue.js template inside Rails 5.1 app and calling publicClient.getProducts() methods works fine. But, to stream the data, when I open websocket connection I am getting: "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://ws-feed.gdax.com/. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing)." Is this something has to do with Rails or Vue.js? Any help is greatly appreciated. <template>
<div id="trades">
<p>{{ message }}</p>
<button @click='load'>Load data</button>
</div>
</template>
<script>
const Gdax = require('gdax');
const publicClient = new Gdax.PublicClient();
const websocket = new Gdax.WebsocketClient(['LTC-USD']);
export default {
data: function() {
return {
message: 'Hello from trades Vue'
}
},
methods: {
mounted: function() {
websocket.on('message', data => {
console.log(data);
});
},
load: function() {
publicClient.getProducts((error, response, data) => {
if (error) {
// handle the error
} else {
console.log(JSON.stringify(data));
}
});
}
}
}
</script> |
@nengine Nope, seems like something related to |
@renchap i am still not able to fix error after installing the, webpack-dev-server 2.7.1 can someone help me in fixing the error? |
I have no idea where this error with CORS is coming from and I have no idea how to fix it.

I created a new Rails app using the Angular webpacker flag. (Rails v5.1.3, Angular v4.3.3)
Everything works perfectly well except that I'm getting this endless log of CORS error in my console.
How can I make this error go away?
The text was updated successfully, but these errors were encountered: