Hi Luca, for code examples, you may want to take a look at https://github.com/apache/causeway-app-referenceapp/blob/master/web/src/main/java/demoapp/web/DemoAppManifestCommon.java and https://github.com/apache/causeway-app-referenceapp/blob/master/web/pom.xml.
HTH Jörg -----Original Message----- From: Dan Haywood <[email protected]> Sent: Donnerstag, 16. November 2023 17:50 To: [email protected] Subject: Re: Error Encountered: CORS Issue with Causeway APIRest EXTERNAL EMAIL Which documentation did you try, Luca? Our docs are at: https://causeway.apache.org/vro/latest/cors/about.html , where we've tried to create an extension that simplifies the configuration as much as possible. But it's always possible that there's an error in it. Still, it's also possible there's an error on your side ... the message; the origin "chrome://startpage" looks very weird to me. Do read the article referenced from the above page, it's useful background on CORS and why it's needed. HTH Dan On Thu, 16 Nov 2023 at 16:01, Luca Rivera <[email protected]> wrote: > Hello, > > I'm trying to use the Causeway-provided APIRest to make requests from > a frontend on a different domain. When I make the request, this is the > error I receive: > > "Access to fetch at ' > > http://localhost:8080/restful/services/simple.LoginJugador/actions/Log > inJugador/invoke > ' > from origin 'chrome://startpage' has been blocked by CORS policy: > Response to preflight request doesn't pass access control check: No > 'Access-Control-Allow-Origin' header is present on the requested resource. > If an opaque response serves your needs, set the request's mode to > 'no-cors' to fetch the resource with CORS disabled." > > I've tried following the documentation by adding the necessary > dependencies and configuring the application.yml file, but I haven't > been able to solve this CORS issue. I would appreciate any guidance or advice > on this matter. > > Thank you for your help. > > Best regards, > Kühne + Nagel (AG & Co.) KG Rechtsform: Kommanditgesellschaft, Bremen HRA 21928, USt-IdNr.: DE 812773878. Geschäftsleitung Kühne + Nagel (AG & Co.) KG: Tobias Jerschke (Vors.), Simon Bitter, Martin Brinkmann, Lars-Olof Grün, Matthias Knicky, Axel Krichel, Johannes Trimborn, Lars Wedel. Persönlich haftende Gesellschafterin: Kühne & Nagel A.G., Rechtsform: Aktiengesellschaft nach luxemburgischem Recht, HR-Nr.: B 18745, Geschäftsführendes Verwaltungsratsmitglied: Karl Gernandt. Geschäftsleitung Region Europa: Pamela Quinn (Vors.), Philip Biewer, Thierry Held, Jan-Hendrik Köstergarten, Nicholas Minde, André Schiffer, Heiko Schuhmacher. Wir arbeiten ausschließlich auf Grundlage der Allgemeinen Deutschen Spediteurbedingungen 2017 (ADSp 2017). Hinweis: Die ADSp 2017 weichen in Ziffer 23 hinsichtlich des Haftungshöchstbetrages für Güterschäden (§ 431 HGB) vom Gesetz ab, indem sie die Haftung bei multimodalen Transporten unter Einschluss einer Seebeförderung und bei unbekanntem Schadenort auf 2 SZR/kg und im Übrigen die Regelhaftung von 8,33 SZR/kg zusätzlich auf 1,25 Millionen Euro je Schadenfall sowie 2,5 Millionen Euro je Schadenereignis, mindestens aber 2 SZR/kg, beschränken. Die ADSp sind auf unserer Webseite als Download erhältlich. Auf Anfrage senden wir Ihnen diese auch gerne zu.
