GithubHelp home page GithubHelp logo

No data is being sent about ackee HOT 6 CLOSED

electerious avatar electerious commented on June 2, 2024
No data is being sent

from ackee.

Comments (6)

electerious avatar electerious commented on June 2, 2024 1

A 204 response with No Content is correct. The POST request should follow directly when the CORS headers allow it.

Could you attach the response headers of the OPTIONS request (Chrome -> Network)? They provide more information.

Here's what my server responds with:

access-control-allow-headers: DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, Cache-Control, Content-Type
access-control-allow-methods: GET, POST, PATCH, OPTIONS
access-control-allow-origin: https://example.com
date: Sun, 22 Sep 2019 11:05:00 GMT
server: nginx
status: 204
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-frame-options: deny

from ackee.

Neurrone avatar Neurrone commented on June 2, 2024 1

Confirmed that after the needed nginx configuration (which I needed to do anyway to enable https support), this is working as expected. Thanks!

from ackee.

electerious avatar electerious commented on June 2, 2024

There might be a chance that the request gets blocked because of incorrect CORS headers. Is there an error in the console of your browser?

from ackee.

Neurrone avatar Neurrone commented on June 2, 2024

No cors errors that I could find.

from ackee.

zhaowenyuan avatar zhaowenyuan commented on June 2, 2024

It seems that adding the GET method is necessary!
access-control-allow-methods: GET, POST, PATCH, OPTIONS
But I don't know why ... ?

from ackee.

electerious avatar electerious commented on June 2, 2024

GET seems to be necessary. I've updated the docs to include it. Thanks for the help!

from ackee.

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.