Project

General

Profile

pre-flight with OPTION header => can not connect (cors?config?)

# JeSuisTigase
Added over 3 years ago

Hello dear tigasers,

I can connect to Tigase server with all browsers except Safari.

With Fiddler, I see a pre-flight request (thrown only with Safari, other browsers just send the POST request after the CONNECT one).

Here is the request sent by Safari after the CONNECT request :

OPTIONS https://distant-tigase-server.im.com:5281/ HTTP/1.1

Host: distant-tigase-server.im.com:5281

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2

Content-Length: 0

Accept: /

Access-Control-Request-Method: POST

Origin: http://local-web-server.im.com:8176

Referer: http://local-web-server.im.com:8176/InstantMessaging/index.html

Access-Control-Request-Headers: Content-Type

Accept-Language: en-US

Accept-Encoding: gzip, deflate

Connection: keep-alive

Proxy-Connection: keep-alive

Do Tigase handle this kind of request?

Is it a configuration problem (maybe I forgot a header) ?

Is this problem fixed in Tigase > 5.1.0-beta8-b2937 ?

Thanks for reading my issue.

regards,

#jesuistigase


Replies (3)

Added by Wojciech Kapcia TigaseTeam over 3 years ago

There were a couple of changes in this regard so I would recommend trying latest Tigase version.

Added by # JeSuisTigase over 3 years ago

Hi Wojciech,

thanks for you answer.

Do you confirm it's a known problem of this tigase version ?

I'm trying to modify the headers set by Strophe to avoid the pre-flight request, but the behaviour of Tigase is a bit random on this particular configuration.

Regards,

#JeSuisTigase

Added by # JeSuisTigase over 3 years ago

.

    (1-3/3)