[Geoserver-users] Enabling CORS on Geoserver

I am getting cross domain errors when trying to do a wmsgetfeatureinfo request

Get a console message saying

required Cross Origin Resource Sharing (CORS) and required CORS preflight.

See error below

SEC7120: Origin http://localhost:51416 not found in Access-Control-Allow-Origin header.

I need to either my application or geoserver to allow cross domain calls, I am not sure which

Anyone experienced this issue and know of a solution?

Mark Ismail

Principal IT Officer

Tel: 0151 443 3021

Knowsley Council ê Westmorland Road ê Huyton ê L36 9GL

Save time – use the IT Service Desk Self Serve Application

Hi,

http://software.dzhuvinov.com/cors-filter-installation.html

this might help you

regards,
Imran

···

On Mon, Apr 14, 2014 at 3:48 PM, Ismail, Mark <mark.ismail@anonymised.com> wrote:

I am getting cross domain errors when trying to do a wmsgetfeatureinfo request

Get a console message saying

required Cross Origin Resource Sharing (CORS) and required CORS preflight.
from my requests to geoserver

See error below

SEC7120: Origin http://localhost:51416 not found in Access-Control-Allow-Origin header.

I need to either my application or geoserver to allow cross domain calls, I am not sure which

Anyone experienced this issue and know of a solution?

Mark Ismail

Principal IT Officer

Tel: 0151 443 3021

Knowsley Council ê Westmorland Road ê Huyton ê L36 9GL

Save time – use the IT Service Desk Self Serve Application

This e-mail and any attachments are confidential. It may contain privileged information and is intended for the named recipient(s) only. It must not be distributed without consent. If you are not one of the intended recipients, please notify the sender immediately and do not disclose, distribute, or retain this email or any part of it and do not take any action based on it.

Unless expressly stated, opinions in this email are those of the individual sender, and not of Knowsley MBC. Legally binding obligations can only be created for, or be entered into on behalf of, Knowsley MBC by duly authorised officers or representatives.

Knowsley MBC excludes any liability whatsoever for any offence caused, any direct or consequential loss arising from the use, or reliance on, this e-mail or its contents. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking and no responsibility is accepted for loss or damage arising from viruses or changes made to this message after it was sent. Knowsley MBC reserves the right to monitor and/or record all e-mail communications through its network in accordance with relevant legislation.


Learn Graph Databases - Download FREE O’Reilly Book
“Graph Databases” is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


I.R

Thank you Imran

That worked a treat - my wmsgetfeatureinfo requests are returning results

I assumed the cors-filter-xx.jar and java-property-utils-xx.jar had to be the same version so I went for 1.9.1 in both as there wasn’t a 1.9.2 utils version

Mark Ismail

Principal IT Officer

Tel: 0151 443 3021

Knowsley Council ê Westmorland Road ê Huyton ê L36 9GL

Save time – use the IT Service Desk Self Serve Application

···

From: Imran Rajjad [mailto:rajjad@…84…]
Sent: 14 April 2014 12:58
To: Ismail, Mark
Cc: geoserver mailing list (geoserver-users@lists.sourceforge.net)
Subject: Re: [Geoserver-users] Enabling CORS on Geoserver

Hi,

http://software.dzhuvinov.com/cors-filter-installation.html

this might help you

regards,
Imran

On Mon, Apr 14, 2014 at 3:48 PM, Ismail, Mark <mark.ismail@…6440…> wrote:

I am getting cross domain errors when trying to do a wmsgetfeatureinfo request

Get a console message saying

required Cross Origin Resource Sharing (CORS) and required CORS preflight.
from my requests to geoserver

See error below

SEC7120: Origin http://localhost:51416 not found in Access-Control-Allow-Origin header.

I need to either my application or geoserver to allow cross domain calls, I am not sure which

Anyone experienced this issue and know of a solution?

Mark Ismail

Principal IT Officer

Tel: 0151 443 3021

Knowsley Council ê Westmorland Road ê Huyton ê L36 9GL

Save time – use the IT Service Desk Self Serve Application

This e-mail and any attachments are confidential. It may contain privileged information and is intended for the named recipient(s) only. It must not be distributed without consent. If you are not one of the intended recipients, please notify the sender immediately and do not disclose, distribute, or retain this email or any part of it and do not take any action based on it.

Unless expressly stated, opinions in this email are those of the individual sender, and not of Knowsley MBC. Legally binding obligations can only be created for, or be entered into on behalf of, Knowsley MBC by duly authorised officers or representatives.

Knowsley MBC excludes any liability whatsoever for any offence caused, any direct or consequential loss arising from the use, or reliance on, this e-mail or its contents. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking and no responsibility is accepted for loss or damage arising from viruses or changes made to this message after it was sent. Knowsley MBC reserves the right to monitor and/or record all e-mail communications through its network in accordance with relevant legislation.


Learn Graph Databases - Download FREE O’Reilly Book
“Graph Databases” is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


I.R