Skip to content
Advertisement

yii2: how to set Access-Control-Allow-Origin header

I have this yii2 controller where I want to set Access-Control-Allow-Origin: * header

JavaScript

Please Help!

Advertisement

Answer

I have solved it by updating the behaviors() function

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement