I trust you got his working, I made a minor documentation fix for the
broken links https://github.com/geoserver/geoserver/pull/7034

If you are still having trouble consider reading the jetty manual directly
https://eclipse.dev/jetty/documentation/jetty-9/index.html#cross-origin-filter
--
Jody Garnett


On Jul 14, 2023 at 2:49:57 AM, Ujwal Vohra <ujwalvohra42...@gmail.com>
wrote:

>
> On Wed, Jul 12, 2023, 9:59 PM Jody Garnett <jody.garn...@gmail.com> wrote:
>
>> I assume you are following the instructions here:
>> https://docs.geoserver.org/latest/en/user/production/container.html#enable-cors
>>
>> These instructions are quite clear, your error message seems to indicate
>> you are running Jetty.
>>
>> Looking at your attached web.xml the instructions have not been followed,
>> and the folllowing is stilled commented out:
>>
>>    <!-- Uncomment following filter to enable CORS
>>    <filter>
>>         <filter-name>cross-origin</filter-name>
>>
>> <filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>
>>     </filter> -->
>>
>> And also:
>>     <!-- Uncomment following filter to enable CORS
>>      <filter-mapping>
>>         <filter-name>cross-origin</filter-name>
>>         <url-pattern>/*</url-pattern>
>>     </filter-mapping>-->
>>
>> It does appear the documentation is out of date, as the jetty section no
>> longer has stuff for allowedOrigins and allowedMethods.
>> --
>> Jody Garnett
>>
>>
>> On Jul 12, 2023 at 5:17:08 AM, Ujwal Vohra <ujwalvohra42...@gmail.com>
>> wrote:
>>
>>> while working with geoserver  when i'm making changes in web.xml for
>>> cross origin and uncommenting cross origin filters to remove this error as
>>> under:
>>>
>>> *Cross-Origin Read Blocking (CORB) blocked cross-origin response <URL>
>>> with MIME type application/vnd.ogc.se_xml. See <URL> for more
>>> details.Cross-Origin Read Blocking (CORB) blocked cross-origin
>>> response........*
>>>  i am getting  the error as:
>>> *HTTP ERROR: 503 Problem accessing /geoserver/. Reason: Service
>>> Unavailable Powered by Jetty://*
>>> and it's not running the geoserver website.
>>>
>>> so both of these things are contradicting. Please resolve the issue if
>>> possible attaching the web.xml please make changes in that file and comment
>>> where you have made changes so that i get to know  what is there that we
>>> can do with those types of errors.
>>> --
>>> *Thanks & Regards *
>>> *Ujwal Singh Vohra*
>>>
>>>
>>> _______________________________________________
>>> Geoserver-users mailing list
>>>
>>> Please make sure you read the following two resources before posting to
>>> this list:
>>> - Earning your support instead of buying it, but Ian Turton:
>>> http://www.ianturton.com/talks/foss4g.html#/
>>> - The GeoServer user list posting guidelines:
>>> http://geoserver.org/comm/userlist-guidelines.html
>>>
>>> If you want to request a feature or an improvement, also see this:
>>> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>>>
>>>
>>> Geoserver-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>>
>>
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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

Reply via email to