How to disable/close the http request which request mthod is "OPTIONS" when using the "get" method of "AuthHtpp"?
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
You can't. Read up on CORS. It's a browser thing, nothing to to with this lib, or angular.
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! 🙇♂️