You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a react frontend with a java backend. The java spring boot server uses frontend-maven-plugin to build and package the js. I have no problem running klaro on localhost:3000 using npm start, but on localhost:8080 which is more like production I get the error in the title. It prevents my entire page from rendering, just a white screen.
Expected behavior
I'd expect it to work the same on both 3000 and 8080
The text was updated successfully, but these errors were encountered:
Klaro Config
var myKlaroConfig = {
testing: false,
elementID: 'klaro',
storageMethod: 'localStorage',
storageName: 'klaro',
htmlTexts: true,
cookieDomain: 'http://my.localhost:3000',
cookieExpiresAfterDays: 30,
default: false,
mustConsent: false,
acceptAll: true,
hideDeclineAll: false,
hideLearnMore: false,
noticeAsModal: true,
translations: {
};
export default myKlaroConfig;
React Code of Page
import * as Klaro from "klaro/dist/klaro-no-css";
import myKlaroConfig from '../utils/klaroConfig';
const LanguageSwitcher = ({ styles }) => {
}
Steps to reproduce
I have a react frontend with a java backend. The java spring boot server uses frontend-maven-plugin to build and package the js. I have no problem running klaro on localhost:3000 using npm start, but on localhost:8080 which is more like production I get the error in the title. It prevents my entire page from rendering, just a white screen.
Expected behavior
I'd expect it to work the same on both 3000 and 8080
The text was updated successfully, but these errors were encountered: