emdax asked
dstala replied
this menu will open-up code snippets for your project table in in different programming languages
dstala replied
No. Snippet is static. Something like below for JS
```shell
import axios from “axios”;
const options = {
method: ‘GET’,
url: ‘http://localhost:8080/api/v1/db/data/noco/p_6bba84fwrupxcj/City/views/City’,
params: {offset: ‘0’, limit: ‘25’, where: ‘’},
headers: {
‘xc-auth’: ‘eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InVzZXJAbm9jb2RiLmNvbSIsImZpcnN0bmFtZSI6bnVsbCwibGFzdG5hbWUiOm51bGwsImlkIjoidXNfeHBrZm12dzBmM3oyZHQiLCJyb2xlcyI6InVzZXIsc3VwZXIiLCJ0b2tlbl92ZXJzaW9uIjoiZDdmNTI2YzcwM2JmNmM0N2VjZjNjYjUyZmRjMjUxYjU4NWJiYTFiMDVjMjAyY2IyNjVjYTQ5NDNhZGZlNzMyMmU1ZTlhYjA2MWM1MTk5Y2IiLCJpYXQiOjE2NjI3OTg4ODUsImV4cCI6MTY2MjgzNDg4NX0.sB3pBy7_IAu4LvcrZ-AJ29OhKd-VbFiLzvy1u-wHXcM’
}
};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});
```
emdax replied
getting: Request header field xc-auth is not allowed by Access-Control-Allow-Headers in preflight response.
emdax replied