Add the origin-trial
meta tags to index.html page of Ember.js application.
- Ember.js v3.12 or above
- Ember CLI v2.13 or above
- Node.js v10 or above
ember install ember-cli-origin-trials
Add your tokens to ENV.originTrials.tokens
in config/environment.js
. Falsy values are automatically removed.
// config/environment.js
module.exports = function(environment) {
let ENV = {
// ...
originTrials: {
tokens: [
'TOKEN_X',
'TOKEN_Y'
]
}
};
};
It will generate the following tags:
<meta http-equiv="origin-trial" content="TOKEN_X">
<meta http-equiv="origin-trial" content="TOKEN_Y">
See the Contributing guide for details.
This project is licensed under the MIT License.