Hello, I'm seeking for help to send just a post request to [login to view URL], but I'm getting an error "Blocage d’une requête multiorigines (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur [login to view URL] Raison : échec de la requête CORS"
I tried to set a proxy to link localhost to [login to view URL], but still getting another error 404: "localhost/api" not found:
this is my [login to view URL]:
{
"name": "ionic-app-base",
"integrations": {},
"type": "angular",
"v2": true,
"typescript": true,
"proxies": [
{
"path": "/api",
"proxyUrl": "[login to view URL]"
}
]
}
this is my [login to view URL]:
import { Component } from '@angular/core';
import { HttpClient} from '@angular/common/http'
@Component({
selector: 'app-home',
templateUrl: '[login to view URL]',
styleUrls: ['[login to view URL]'],
})
export class HomePage {
constructor(public http: HttpClient) {
[login to view URL]('/api')
.subscribe((data) => {
[login to view URL]("result")
[login to view URL](data);
});
}
readAPI(URL: string){
return [login to view URL](URL, {});
}
}
Greeting!
CAN I START WORK ASAP ?
I am proficient in WEBSITE mobile app development
I have completed the projects like yours and I also have a good experience.
I have read your project details carefully and understood your project.
Please, contact me and discuss the details.
I could start to work immediately depending on your requirements.
I will look forward to your private message.
Best regards