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

vendor assets and SSL #99

Open
flinguin opened this issue Mar 8, 2015 · 2 comments
Open

vendor assets and SSL #99

flinguin opened this issue Mar 8, 2015 · 2 comments

Comments

@flinguin
Copy link
Contributor

flinguin commented Mar 8, 2015

since the protocol for our staging environment was switched from http to https all the cruddy assets in the backend get blocked by the browser because they still are requested via http.

is there anything to be done after switching to https - couldn't find anything in the docs or the cruddy config file.

thanks

@flinguin
Copy link
Contributor Author

flinguin commented Mar 9, 2015

found out a little bit more info:
in our case the ssl-connection is terminated at a reverse proxy (nginx) the request is then internally forwarded via http to the staging server. the js files of the backend and also most of the links in the Cruddy-json variable are generated absolute depending on the request ... so they all look like "http://domain/..."

i don't know if absolute urls are really needed or if site-relative urls or even just urls without the protocoll wouldn't be better. on the other hand i couldn't yet figure out a way to tell laravel or cruddy to render the pages not with the requested protocoll/domain but to force a protocoll and domain for rendering.

@lazychaser
Copy link
Contributor

Hmm, will figure it, maybe add config entry secure, you can alter CruddyServiceProvider to use secure_asset instead of asset for now

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