Posts by Gabriel Nunes • 3 points
2 posts
-
0
votes0
answers136
viewsQ: PUT AJAX api Climatempo returning CORS error
Hello, I’m having problems performing a PUT in AJAX with the weather api, my code is this : var URL = 'http://apiadvisor.climatempo.com.br/api-manager/user-token/TOKEN/locales'; $.ajax({ url: URL,…
-
0
votes1
answer141
viewsQ: Error "content-type is not allowed by Access-Control-Allow-Headers in preflight Response." -API Climatempo
Hello, I have a problem with CORS in the Climatempo API, my request code is this: var api_url = '"http://apiadvisor.climatempo.com.br/api/v1/anl/synoptic/locale/BR?token=TOKEN"'; $.ajax({ url:…