Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only absolute URLs are supported??? #605

Open
shubham1164 opened this issue Dec 9, 2018 · 1 comment
Open

Only absolute URLs are supported??? #605

shubham1164 opened this issue Dec 9, 2018 · 1 comment

Comments

@shubham1164
Copy link

shubham1164 commented Dec 9, 2018

I have set up the code as directed in the documentation. But I am struggling with localhost and my real domain setup issue. I am using nginx and tried different combination of cezerin/config/*.js versions on linux server to make it work.

Issues facing:

  1. Sometimes Website shows but only store don't show up in any site (neither in localhost nor in real domain).
  2. and sometimes store work in localhost but not in real domain.

I have tried the following options:

  1. I have tried the complete relative paths in server.js files on the suggestion of Link. I have already added my real domain in the localhost:3000/admin/settings/domain. Getting the message in plain text from both the sites (localhost or real domain) - "Only absolute URLs are supported".
  2. I have tried to add http://localhost everywhere in server.js. The store works on localhost but not real domain.
  3. I have tried to add http://somerealdomain.com everywhere needed in server.js. The store is not working in localhost and real domain also.

Please explain in detail, how to use the value of these params in config/*.js to make the site work in real domain:

// used by Store (server side) apiBaseUrl: /api/v1`,

// used by Store (server and client side)
ajaxBaseUrl: `/ajax`,

// Access-Control-Allow-Origin
//storeBaseUrl: '*',

// used by API
adminLoginUrl: '/admin/login',`
@neunygph
Copy link

since the original creator is not here anymore, we made a new repository here. Everyone is welcome to join https://join.slack.com/t/caesarcommerce/shared_invite/enQtNTA0ODExMjIyNjU3LWRhNTM2YzQ4MzMwMjMzN2Y1ZTNmYTkzMWJiOTg5NmE3OGZmOWRlNzViMmQyOTM1NjZjOGNlMWUyNmU5MzJmNjE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants