javascript - CORS with php headers -


i have simple php script attempting cross-domain cors request:

<?php header("access-control-allow-origin: *"); header("access-control-allow-headers: *"); ... 

yet still error:

request header field x-requested-with not allowed access-control-allow-headers

anything i'm missing?

access-control-allow-headers not allow * accepted value, see mozilla documentation here.

instead of asterisk, should send accepted headers (first x-requested-with error says).


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -