Hello James,

Please do not write personal emails (subscribe to user@ list
http://openmeetings.apache.org/mail-lists.html)

According to your question: you need to go to OM->Admin->Config
and update "header.content.security.policy" configuration:
http://openmeetings.apache.org/GeneralConfiguration.html


On Wed, Dec 20, 2017 at 9:11 AM, James Chan <[email protected]> wrote:

> Dear Maxim,
>
> I am trying to write a simple application, which having the following code:
>
> Environment:
>
> openmeetings version 4.0.1 running on linux in another server.
>
> $.ajax({
>     method: "GET",
>     url: 'http://192.168.128.38:5080/openmeetings/services/user/login',
>     data:{
>         user:’TestAccount',
>         pass:’@TestingPass'
>     },
>     dataType:'json',
>     success:function (data) {
>         alert('success');
>     },
>     error:function (d) {
>         console.log(d);
>         alert(d);
>     }
> });
>
> However, it is having the cross domain error.
>
> Could you please help to give me some pointers as I have been trying to
> search the web but with no luck.
> (Some suggest using allow-access-control-origin = ‘*’, does it mean I need
> to modify the openmeetings code?)
>
>
>
> Thanks
>
> James
>



-- 
WBR
Maxim aka solomax

Reply via email to