synrc / rest Goto Github PK
View Code? Open in Web Editor NEW☕ REST: RFC-2616 Framework
Home Page: https://rest.n2o.dev
License: Other
☕ REST: RFC-2616 Framework
Home Page: https://rest.n2o.dev
License: Other
There is a lot of cross dependencies between rest and n2o. It'd be nice if we could eliminate those so that users could use rest without having needed to pull in all of n2o.
It looks seems like it's mostly using the type conversions/checkers in "wf_convert" and "wf_utils". Is there any interest in pulling these into a separate library-application?
I am trying to request the rest api with an ajax call as follows:
$.ajax({
url: 'http://localhost:9000/users',
method: 'GET',
type: 'post',
contentType: 'applications/json',
success: function (response, type, xhr) {
console.log(response);
data=JSON.stringify(response);
console.log(data);
.........
But in my browser log I got a CROSS issue
XMLHttpRequest cannot load http://localhost:9000/users. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
How can I resolve it ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.