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

Allow user to specify https or https protocol for AJAX calls #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zacwasielewski
Copy link
Contributor

This enhancement allows the developer to force AJAX connections to use http://, https://, or auto-detect based on the protocol of the current URL. It can be useful when jQuery Socialist is embedded on an https:// page; some browsers will fail to retrieve the Google Feed API using an http:// URL.

This is accomplished by adding a "secure" property in the networks config, as such:

$('#socialist').socialist({
    networks: [
        { name:'rss', id:'http://www.rssfeedurl.com/', secure:true }
    ]
});

Possible values for 'secure' are: true, false, "detect". If 'secure' is not specified, then it defaults to whatever protocol is set in the networkDefs object.

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

Successfully merging this pull request may close these issues.

1 participant