# Failed to load "url" Response for preflight does not have HTTP ok status

**URL:** <https://forum.ionicframework.com/t/failed-to-load-url-response-for-preflight-does-not-have-http-ok-status/139452>\
**Category:** ionic-v3\
**Created:** [August 23, 2018, 1:53pm UTC](https://forum.ionicframework.com/t/failed-to-load-url-response-for-preflight-does-not-have-http-ok-status/139452 "2018-08-23T13:53:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mrob](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@Mrob](https://forum.ionicframework.com/u/Mrob)\
**Post date:** [August 23, 2018, 1:53pm UTC](https://forum.ionicframework.com/t/failed-to-load-url-response-for-preflight-does-not-have-http-ok-status/139452/1 "2018-08-23T13:53:24Z")

</div>

Hello,

i have this provider to load data from a url

```auto
export class FortniteProvider {

  url: string ="https:/example/v1/profile/";
  key: string = "Key: b4776120-e427-4e22-b16d-77090958e957";

  

  constructor(private http: HttpClient) {
    console.log('Hello FortniteProvider Provider');
  }

 getUserData(username: string, platform: string){
    console.log("getUserData loaded //com by me");

    return this.http.get(`${this.url}${platform}/${username}`, {headers: {API_KEY}});
  }

```

this is the error:

 ![fuck](https://global.discourse-cdn.com/ionicframework/original/3X/6/0/603afb22a7c781b0c1b8d2da9d9fb33c4462740b.png)

there are my “app.module.ts”

```auto
import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';

import { MyApp } from './app.component';
import { FortniteProvider } from '../providers/fortnite/fortnite';
import { HttpClientModule } from '@angular/common/http';

@NgModule({
  declarations: [
    MyApp,
  
  ],
  imports: [
    BrowserModule,
    HttpClientModule,
    IonicModule.forRoot(MyApp)
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    FortniteProvider
  ]
})
export class AppModule {}

```

and my ionic.config.json

```auto
{
  "name": "FortniteStats",
  "type": "ionic-angular",
  "integrations": {
    "cordova": {}
  }
  
  
}

```

why isn’t it working?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:22pm UTC](https://forum.ionicframework.com/t/failed-to-load-url-response-for-preflight-does-not-have-http-ok-status/139452/2 "2021-07-19T21:22:41Z")

</div>

Closed on July 19, 2021, 9:22pm UTC


