# AJAX / JQUERY API Call

**URL:** https://community.zammad.org/t/ajax-jquery-api-call/2508
**Category:** Technical assistance
**Created:** [May 17, 2019, 7:32am UTC](https://community.zammad.org/t/ajax-jquery-api-call/2508 "2019-05-17T07:32:37Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![Rolandrevolvermann](https://community.zammad.org/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@Rolandrevolvermann](https://community.zammad.org/u/Rolandrevolvermann)
#### Post date: [June 13, 2019, 7:47am UTC](https://community.zammad.org/t/ajax-jquery-api-call/2508/12 "2019-06-13T07:47:08Z")

</div>

I expanded the zammad.conf with all privileges i found:

> add\_header ‘Access-Control-Allow-Methods’ ‘GET,OPTIONS,PUT,DELETE’ always;  
> add\_header ‘Access-Control-Allow-Credentials’ ‘true’ always;  
> add\_header ‘Access-Control-Allow-Origin’ ‘$http\_origin’ always;  
> add\_header ‘Access-Control-Allow-Headers’ ‘Authorization,DNT,User-Agent,Keep-Alive,Content-Type,accept,origin,X-Requested-With’ always;  
> add\_header ‘Access-Control-Expose-Headers’ ‘Authorization,DNT,User-Agent,Keep-Alive,Content-Type,accept,origin,X-Requested-With,Content-Disposition’ always;

But Firefox degugger says:

> Request URL:[http://localhost/api/v1/users](http://localhost/api/v1/users)  
> Request method:OPTIONS  
> Remote address:127.0.0.1:80  
> Status code: 404  
> Version:HTTP/1.1

Requested header:

> OPTIONS /api/v1/users HTTP/1.1  
> Host: localhost  
> User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86\_64; rv:67.0) Gecko/20100101 Firefox/67.0  
> Accept: _/_  
> Accept-Language: en-US,en;q=0.5  
> Accept-Encoding: gzip, deflate  
> Access-Control-Request-Method: GET  
> Access-Control-Request-Headers: authorization,content-type  
> Origin: null  
> Connection: keep-alive  
> Cache-Control: max-age=0

Firefox Header as curl:

> curl ‘[http://localhost/api/v1/users](http://localhost/api/v1/users)’ -X OPTIONS -H ‘User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86\_64; rv:67.0) Gecko/20100101 Firefox/67.0’ -H ‘Accept: _/_’ -H ‘Accept-Language: en-US,en;q=0.5’ --compressed -H ‘Access-Control-Request-Method: GET’ -H ‘Access-Control-Request-Headers: authorization,content-type’ -H ‘Origin: null’ -H ‘Connection: keep-alive’ -H ‘Cache-Control: max-age=0’

No more ideas now…

---

_[View the full topic](https://community.zammad.org/t/ajax-jquery-api-call/2508)._
