Git Product home page Git Product logo

Comments (6)

mcollina avatar mcollina commented on August 11, 2024

Thanks for reporting!

Can you provide steps to reproduce? We often need a reproducible example, e.g. some code that allows someone else to recreate your problem by just copying and pasting it. If it involves more than a couple of different file, create a new repository on GitHub and add a link to that.

from fastify-cors.

climba03003 avatar climba03003 commented on August 11, 2024

Please provide the screenshot in broswer or cURL about the headers for both request and response.
You can mask the sensitive information. I would like to double confirm is the header properly sent.

For example, is the browser providing the Origin header.

If you are using reverse proxy in between, please also check if the headers are hide by that proxy.
It is often that the proxy is not properly proxy CORS headers and requires some manual config.

from fastify-cors.

virangaj avatar virangaj commented on August 11, 2024

image
This is what I'm getting in my browser

from fastify-cors.

climba03003 avatar climba03003 commented on August 11, 2024

This screenshot is not going to helps.
You should provide that contain the headers for both request and response.

from fastify-cors.

climba03003 avatar climba03003 commented on August 11, 2024

I am closing the issue because I believe it is the problem related to socket.io.
socket.io used to be overriding the request handling of fastify, so you should configure the CORS from socket.io side.

from fastify-cors.

virangaj avatar virangaj commented on August 11, 2024

Yes, you are correct... the issue is in socket.io side, Thank you

from fastify-cors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.