Advertisement
Guest User

Untitled

a guest
Mar 27th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <httpProtocol>
  2. <customHeaders>
  3. <add name="Access-Control-Allow-Origin" value="*" />
  4. <add name="Access-Control-Allow-Method" value="*" />
  5. <add name="Access-Control-Allow-Credentials" value="true" />
  6. <add name="Access-Control-Allow-Headers" value="Content-Type" />
  7. </customHeaders>
  8. </httpProtocol>
  9.  
  10.  
  11. $.ajax({
  12. type: "POST",
  13. data: { language: $(this).data("lang"), uid: $(this).data("uid") },
  14. url: $(this).data("authurl") + "/account/changelanguage",
  15. crossDomain: true,
  16. xhrFields: {
  17. withCredentials: true
  18. }
  19. }).done(function(e) {
  20. location.reload();
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement