<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[C]Cors Issue , connect to remote server from webgl]]></title><description><![CDATA[<p>Hello with my team, we have decided to switch from version 0.10 of colyseus to version 0.14.18. We manage to connect with the remote server from Unity without worries but as soon as it comes to connecting to the remote server via the website with the WEBGL application, this one displays a CORS error that I cannot get to solve , the error seems to come from the header sent by the client :</p>
<p><img src="https://i.gyazo.com/d7cad4ce9f23c6e21e6c04c4bd50056a.png" alt="alt text" class="img-responsive img-markdown" /></p>
<p>I have an other error after that<br />
<img src="https://i.gyazo.com/489756160000a0f456a837f2c211a946.png" alt="alt text" class="img-responsive img-markdown" /></p>
<p>Here is the code that allows me to make the connection:<br />
<img src="https://i.gyazo.com/551caa7989a437f08bf196a53068c5f0.png" alt="alt text" class="img-responsive img-markdown" /></p>
<p>The headers in Colyseus Settings are the same in the code previously mentioned.<br />
The secure protocole is checked.</p>
<p>Hope to have some help coming here , good day for you !</p>
]]></description><link>http://discuss.colyseus.io/topic/518/c-cors-issue-connect-to-remote-server-from-webgl</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 16:29:32 GMT</lastBuildDate><atom:link href="http://discuss.colyseus.io/topic/518.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 03 Oct 2021 11:07:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [C]Cors Issue , connect to remote server from webgl on Wed, 13 Oct 2021 12:52:57 GMT]]></title><description><![CDATA[<p>Hello with my team, we have decided to switch from version 0.10 of colyseus to version 0.14.18. We manage to connect with the remote server from Unity without worries but as soon as it comes to connecting to the remote server via the website with the WEBGL application, this one displays a CORS error that I cannot get to solve , the error seems to come from the header sent by the client :</p>
<p><img src="https://i.gyazo.com/d7cad4ce9f23c6e21e6c04c4bd50056a.png" alt="alt text" class="img-responsive img-markdown" /></p>
<p>I have an other error after that<br />
<img src="https://i.gyazo.com/489756160000a0f456a837f2c211a946.png" alt="alt text" class="img-responsive img-markdown" /></p>
<p>Here is the code that allows me to make the connection:<br />
<img src="https://i.gyazo.com/551caa7989a437f08bf196a53068c5f0.png" alt="alt text" class="img-responsive img-markdown" /></p>
<p>The headers in Colyseus Settings are the same in the code previously mentioned.<br />
The secure protocole is checked.</p>
<p>Hope to have some help coming here , good day for you !</p>
]]></description><link>http://discuss.colyseus.io/post/1602</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1602</guid><dc:creator><![CDATA[RS]]></dc:creator><pubDate>Wed, 13 Oct 2021 12:52:57 GMT</pubDate></item><item><title><![CDATA[Reply to [C]Cors Issue , connect to remote server from webgl on Invalid Date]]></title><description><![CDATA[<p>Try to remove &quot;Access-Control&quot; line.</p>
]]></description><link>http://discuss.colyseus.io/post/1603</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1603</guid><dc:creator><![CDATA[COCO]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to [C]Cors Issue , connect to remote server from webgl on Invalid Date]]></title><description><![CDATA[<p>Hi , already tested , doesn't fix</p>
]]></description><link>http://discuss.colyseus.io/post/1604</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1604</guid><dc:creator><![CDATA[RS]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to [C]Cors Issue , connect to remote server from webgl on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/163">@rs</a> try to replace * with your domain.</p>
]]></description><link>http://discuss.colyseus.io/post/1605</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1605</guid><dc:creator><![CDATA[COCO]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to [C]Cors Issue , connect to remote server from webgl on Invalid Date]]></title><description><![CDATA[<p>Same message :/</p>
]]></description><link>http://discuss.colyseus.io/post/1606</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1606</guid><dc:creator><![CDATA[RS]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to [C]Cors Issue , connect to remote server from webgl on Invalid Date]]></title><description><![CDATA[<p>ok then it's late here, I will help to test it tomorrow. see you tomorrow.</p>
]]></description><link>http://discuss.colyseus.io/post/1607</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1607</guid><dc:creator><![CDATA[COCO]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to [C]Cors Issue , connect to remote server from webgl on Invalid Date]]></title><description><![CDATA[<p>Ok thanks</p>
]]></description><link>http://discuss.colyseus.io/post/1608</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1608</guid><dc:creator><![CDATA[RS]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to [C]Cors Issue , connect to remote server from webgl on Invalid Date]]></title><description><![CDATA[<p>I tried with and without header ( the settings are in the main post of the thread ), put logs before the connection request (directly in the colyseus code) to display the headers, they are empty or show only my settings set but nothing about &quot;*, *&quot;, and my local wamp server has no CORS rules ... and fresh install</p>
]]></description><link>http://discuss.colyseus.io/post/1609</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1609</guid><dc:creator><![CDATA[RS]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to [C]Cors Issue , connect to remote server from webgl on Invalid Date]]></title><description><![CDATA[<p>&quot;*, *&quot; means that there are 2 same headers in the request. there must be some settings or codes put them in the header I think.</p>
]]></description><link>http://discuss.colyseus.io/post/1610</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1610</guid><dc:creator><![CDATA[COCO]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to [C]Cors Issue , connect to remote server from webgl on Invalid Date]]></title><description><![CDATA[<p>I already checked the headers sent by colyseus , but there is no duplicated header.<br />
And my local server ( from fresh install ) have no rule about allow cross origin but sent &quot;<em>,</em>&quot; like the remote server</p>
]]></description><link>http://discuss.colyseus.io/post/1611</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1611</guid><dc:creator><![CDATA[RS]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to [C]Cors Issue , connect to remote server from webgl on Invalid Date]]></title><description><![CDATA[<p>Please have a look at this problem <a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/1">@endel</a> .</p>
]]></description><link>http://discuss.colyseus.io/post/1612</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1612</guid><dc:creator><![CDATA[COCO]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to [C]Cors Issue , connect to remote server from webgl on Invalid Date]]></title><description><![CDATA[<p>I found this:</p>
<p><div class="video-embed"><iframe src="//www.youtube.com/embed/BzH6AuwblJY" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div></p>
]]></description><link>http://discuss.colyseus.io/post/1613</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1613</guid><dc:creator><![CDATA[COCO]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>