Reputation: 453
I am really new to hybris so I just installed the accelebrates followed the wiki page. But when I access the site using the http link
http://electronics.local:9001/yacceleratorstorefront/ it always redirect to https://electronics.local:9002/yacceleratorstorefront/electronics/en/
I have suspect the get and the server have return 302 Found with the new redirect URL.
Can anyone help to explain what is the settings and why hybris redirect me to https link like this.
Upvotes: 1
Views: 5319
Reputation: 2989
It's the accelerator's default behavior to change it, update the file spring-security-config.xml
under your store front extension :
<security:intercept-url pattern="/**" requires-channel="https" />
Upvotes: 3
Reputation: 5421
I was able to accomplish this by deleting every instance of
<security:intercept-url pattern="/**" requires-channel="https" />
or simply the
requires-channel="https"
in the places where interceptor was a bit more complex in the same file spring-security-config.xml
mentioned by Benoit.
Then, just restarted the platform(no compilation required).
This works but obviously at the cost of removing all https requirements so this should only be used for demonstration purposes.
Upvotes: 0