Comments (6)
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.
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.
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.
No cors errors that I could find.
from ackee.
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.
GET
seems to be necessary. I've updated the docs to include it. Thanks for the help!
from ackee.
Related Issues (20)
- CORS headers are not attached for serverless function on Vercel HOT 10
- Build Failing HOT 2
- Unable to login to Ackee | Vercel Deployment HOT 4
- Cant login to dashboard HOT 7
- Error login HOT 1
- Unrecognized time zone identifier: "Europe/Kyiv" HOT 6
- Unexpected token 'A', "An error o"... is not valid JSON HOT 1
- Hosting my website on netlify makes requests from preview builds logged HOT 6
- Cloudflare tunnels HOT 1
- A Public Analytics Page for Increased Transparency and User Engagement
- Support passwordless public dashboard HOT 2
- Trouble Signing In to app. Received status code 502 HOT 2
- Unable to connect to MongoDB with TLS
- Is it possible to integrate the Ackee with NextJS as inbuilt analytics. HOT 1
- unrecognized time zone identifier: "Europe/Kyiv" HOT 1
- Premission to publish "Ackee" app in Umbrel App store
- Any way to get complete history for pages visits? HOT 3
- Add documentation for configuring Caddy as a reverse proxy HOT 1
- Add Elestio as a deployment option for Ackee
- Unbounded cache enabled in production
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ackee.