angular2-jwt icon indicating copy to clipboard operation
angular2-jwt copied to clipboard

How to disable/close the http request which request mthod is "OPTIONS" when using the "get" method of "AuthHtpp"?

Open eric-heihei opened this issue 9 years ago • 2 comments

When I use the "get" method of "AuthHttp" to request a link, I find the link will be requested twice.One request method is "OPTIONS", another is "GET". I want to disable/close the "OPTIONS" request. The code is: ..... import { AuthHttp } from 'angular2-jwt'; constructor(public _authHttp: AuthHttp) {} read(): Observable { return this._authHttp.get(mylinkString); } ......... Thanks

eric-heihei avatar Feb 27 '17 10:02 eric-heihei

You can't. Read up on CORS. It's a browser thing, nothing to to with this lib, or angular.

escardin avatar Feb 27 '17 13:02 escardin

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇‍♂️

stale[bot] avatar Oct 26 '19 06:10 stale[bot]