CORS Error Vue Axios


  • Used Zammad version: 5.2.x
  • Used Zammad installation type:source
  • Operating system: Ubuntu
  • Browser + version: Opera 88.0.4412.53

Expected behavior:

I want to pull all tickets (API) with Vue axios library.

Actual behavior:

I’m getting a CORS error.

Steps to reproduce the behavior:

When I make the following settings, I can pull the tickets with the api. But this time zammad application gives 403 error.

location /api/ {
add_header ‘Access-Control-Allow-Origin’ ‘';
add_header ‘Access-Control-Allow-Headers’ '
proxy_hide_header ‘Access-Control-Allow-Origin’;
proxy_hide_header ‘Access-Control-Allow-Headers’;
proxy_pass http://zammad-railsserver;

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.