kataras / kataras/iris

[QUESTION] post request return 200 ok by postman, no data, but js code request is ok , has data, why ?

Open
#2,447 1 comment 0 reactions 1 assignee Claimed by @kataras View on GitHub
🤔 type:question
Dominant language
Go
Stars
25.6k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
post request return 200 ok by postman, no data, but js code request is ok , has data, why ?

my version:
github.com/kataras/iris/v12 v12.2.5
github.com/iris-contrib/middleware/cors v0.0.0-20220921193907-d3e7dfb17c8f

go: 1.21

there are my some code and img
![image](https://github.com/kataras/iris/assets/4046526/9c045f0c-4bec-4f4b-a8d1-fe22942d4d6d)

![image](https://github.com/kataras/iris/assets/4046526/853c74b6-97ab-4b3d-b68e-a1aef36a544b)
![image](https://github.com/kataras/iris/assets/4046526/2b2ff9b1-a12e-4530-84ac-7f97da00ef46)

if I change the method post as get and use postman, it is ok , has body json data
but the method is post, it is ok, no data.

please help me , thank you!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.