KorryKatti / Mirage

a chat app which doesn't store messages on the server
MIT License
7 stars 17 forks source link

CORS issue with test net server #35

Open KorryKatti opened 20 hours ago

KorryKatti commented 20 hours ago

The testnet server is facing a CORS issue hence rendering it unusable for testing purposes

34

Comment below if you would like to get assigned to fix this issue

image

You may use this html file as a test for CORS fixing

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Socket.IO Test</title>
    <script src="https://cdn.socket.io/4.0.0/socket.io.min.js"></script>
</head>
<body>
    <h1>Socket.IO Test</h1>
    <button id="sendButton">Send Message</button>
    <p id="response"></p>

    <script>
        const socket = io('https://mirage-o081.onrender.com'); 

        socket.on('response', function(data) {
            document.getElementById('response').innerText = data.message;
        });

        document.getElementById('sendButton').onclick = function() {
            const message = 'Hello, Server!';
            socket.emit('send_message', message);
        };
    </script>
</body>
</html>
KorryKatti commented 19 hours ago

Announcement

I am aware that the testnet server isn't working due to some CORS issues. I am currently working to fix it. Thank you for your patience!

KorryKatti commented 17 hours ago

update #36

Manbendra2014 commented 17 hours ago

Hey , I would like to work on the issue.

KorryKatti commented 17 hours ago

Hey , I would like to work on the issue.

will assign to you , thank you for taking out the time