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

# JeSuisTigase
Added almost 4 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 :



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



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.



Replies (3)

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

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

Added by # JeSuisTigase almost 4 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.



Added by # JeSuisTigase over 3 years ago