Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <httpProtocol>
- <customHeaders>
- <add name="Access-Control-Allow-Origin" value="*" />
- <add name="Access-Control-Allow-Method" value="*" />
- <add name="Access-Control-Allow-Credentials" value="true" />
- <add name="Access-Control-Allow-Headers" value="Content-Type" />
- </customHeaders>
- </httpProtocol>
- $.ajax({
- type: "POST",
- data: { language: $(this).data("lang"), uid: $(this).data("uid") },
- url: $(this).data("authurl") + "/account/changelanguage",
- crossDomain: true,
- xhrFields: {
- withCredentials: true
- }
- }).done(function(e) {
- location.reload();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement