Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cors error in ajax call #10

Closed
mahdieyv99 opened this issue Oct 16, 2021 · 0 comments
Closed

Cors error in ajax call #10

mahdieyv99 opened this issue Oct 16, 2021 · 0 comments
Labels
invalid This doesn't seem right

Comments

@mahdieyv99
Copy link

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "url" (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

but in postman or android (java) not problem

$.ajax({
url: 'https://example.com',
type: 'POST',
data: {
id: "2"
},
success: function (result) {
console.log(result)
}, error:function() {
console.log("error")
}
})

why?

@afgprogrammer afgprogrammer added the invalid This doesn't seem right label Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants