Is there a way to "Allow Origin" from multiple sites, because maybe a have:
API: api.example.com
WEBAPP:
webapp.example.com
MOBILE WEB APP:
mobile.example.com
And maybe an iOS app connecting to api.example.com, but PHP only accepts 1
domain in this method: header('Access-Control-Allow-Origin: example.com');
Is there a way to do something like this:
header('Access-Control-Allow-Origin: example.com
,webapp.example.com,mobile.example.com');
On Thursday, February 26, 2015 at 10:58:49 PM UTC-6, Sander Elias wrote:
>
> Hi Fernando,
>
> Well, yes it *is* the best solution. You correctly configured CORS on
> your server! If you server multiple domains from your server, you can let
> the server put in the 'example.com' part based on the request. (make sure
> you check it with a list of allowed domains!)
>
> Regards
> Sander
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.