"A wildcard '*' cannot be used..." When Include v1.0 of sock.js

440 views
Skip to first unread message

Wally Yu

unread,
May 25, 2016, 2:02:02 AM5/25/16
to rabbitmq-users

Hi all,


I successfully built RabbitMQ and Web-Stomp.

However, when I want to receive message from browser, I got weird information.


Here is what my stomp info looks like:




When I include sockjs version=0.34,  I can successfully get message from RabbitMQ although it report an syntax error, see below screenshot.

But if I include sockjs version >1.0, establish between browser and server was not allowed, see below screenshot:
Error message is "A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin 'null' is therefore not allowed access. The credentials mode of an XMLHttpRequest is controlled by the withCredentials attribute."

Any ideas?
I noticed below settings is expected from https://github.com/rabbitmq/rabbitmq-management/issues/3 
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true

But how could I work with sockjs v1.1.1?

Please help. Thanks in advance.

Regards,
Wally

Wally Yu

unread,
May 25, 2016, 11:02:49 PM5/25/16
to rabbitmq-users
Dear all,

Anyone could help? 

Regards,
Wally


在 2016年5月25日星期三 UTC+8下午2:02:02,Wally Yu写道:
Reply all
Reply to author
Forward
0 new messages