Http api request

Sorry but I dont get it on how to use the native http ionic vue, with composition API
There are no documentation or what so
Seems like the documentation is not too readable to those who are not good or people who are still learning the ways,

Found this docs, this might solve the problem

Tried running ionic config set -g proxy but still CORS exists

Im using axios and vue-axios to support composition-api
Also added "proxy": "http://localhost:5100" on ionic.config.json still no luck

Got it working with axios and vue-axios
Gotta use the vue.config.js devServer property

module.exports = {
  devServer: {
    proxy: 'http://localhost:5100',
    headers: {
      "Access-Control-Allow-Origin": "*",
      "Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
      "Access-Control-Allow-Headers": "X-Requested-With, content-type, Authorization",
      "Access-Control-Allow-Credentials": "true"

for axios global config, please refer to their documentation :slight_smile:
Then on main.ts

axios.defaults.baseURL = 'api/v1'
axios.defaults.headers.common = {
  'Authorization': 'Bearer klahdk9817landlkahoaowhd',
  'X-Requested-With': 'XMLHttpRequest',
  'Accept': 'application/json'