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

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -